From 5f885f72cff8a8b06709e98195bd286d58344751 Mon Sep 17 00:00:00 2001 From: Shamarvey1 Date: Thu, 16 Apr 2026 20:01:08 +0530 Subject: [PATCH] fix: return 404 instead of 412 when dataset not found (#1176) --- openml_OS/models/api/v1/Api_data.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openml_OS/models/api/v1/Api_data.php b/openml_OS/models/api/v1/Api_data.php index 294d1300..a8dcc308 100644 --- a/openml_OS/models/api/v1/Api_data.php +++ b/openml_OS/models/api/v1/Api_data.php @@ -792,7 +792,7 @@ private function data($data_id) { $dataset = $this->Dataset->getById( $data_id ); if( $dataset === false ) { - $this->returnError( 111, $this->version ); + $this->returnError(111, $this->version, 404); return; }