From 2c695cf7e5339bc5c9e269ec793c4021b6e915ce Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 11 Jan 2017 19:12:25 -0800 Subject: [PATCH] 404 JSON response if the asset is not found (Brady and I will argue about this forever) --- app/Http/Controllers/Api/AssetsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Api/AssetsController.php b/app/Http/Controllers/Api/AssetsController.php index 9c633b596a..d2c4575bfe 100644 --- a/app/Http/Controllers/Api/AssetsController.php +++ b/app/Http/Controllers/Api/AssetsController.php @@ -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); }