From 396634857e65fbaa8d7b25487bddcaff6813ad81 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 19 Jul 2017 17:26:48 -0500 Subject: [PATCH] use exception status --- app/Exceptions/Handler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 886edb10..8da7515a 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -65,7 +65,7 @@ protected function invalidJson($request, ValidationException $exception) return response()->json([ 'message' => $exception->getMessage(), 'errors' => $exception->errors(), - ], 422); + ], $exception->status); } /**