Added proper status code for all the api modules

This commit is contained in:
dhanabalan
2025-07-11 16:01:37 +05:30
parent b153a53f4b
commit 484bc6d070
6 changed files with 15 additions and 15 deletions

View File

@@ -54,7 +54,7 @@ class ModuleController extends Controller
return response()->json([
'status_code' => 'ERROR',
'status_description' => "Module Name can't be empty!"
], 400);
], 404);
}
$headerValue = $request->header('module-name');
@@ -63,7 +63,7 @@ class ModuleController extends Controller
return response()->json([
'status_code' => 'ERROR',
'status_description' => "Invalid value for 'module-name' header!"
], 400);
], 404);
}
$uniqueModules = ModuleList::select('module_name', 'created_at')