use exception status

This commit is contained in:
Taylor Otwell
2017-07-19 17:26:48 -05:00
parent c2e3cb9065
commit 396634857e

View File

@@ -65,7 +65,7 @@ class Handler extends ExceptionHandler
return response()->json([ return response()->json([
'message' => $exception->getMessage(), 'message' => $exception->getMessage(),
'errors' => $exception->errors(), 'errors' => $exception->errors(),
], 422); ], $exception->status);
} }
/** /**