mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 13:57:41 -08:00
404 JSON response if the asset is not found
(Brady and I will argue about this forever)
This commit is contained in:
parent
74696d5ded
commit
2c695cf7e5
|
@ -186,7 +186,7 @@ class AssetsController extends Controller
|
|||
return $asset;
|
||||
}
|
||||
|
||||
return response()->json(['error' => trans('admin/hardware/message.does_not_exist')]);
|
||||
return response()->json(['error' => trans('admin/hardware/message.does_not_exist')], 404);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue