Added proper status code for all the api modules
This commit is contained in:
@@ -39,7 +39,7 @@ class ModulePlantLineController extends Controller
|
||||
return response()->json([
|
||||
'status_code' => 'ERROR',
|
||||
'status_description' => "Plant Name can't be empty!"
|
||||
], 400);
|
||||
], 404);
|
||||
}
|
||||
|
||||
$plant = Plant::where('name', $plantName)->first();
|
||||
|
||||
Reference in New Issue
Block a user