diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index de890d3e4..7fd552f57 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -121,6 +121,6 @@ class Handler extends ExceptionHandler */ protected function invalidJson($request, ValidationException $exception) { - return response()->json(Helper::formatStandardApiResponse('error', null, $exception->errors(), 400)); + return response()->json(Helper::formatStandardApiResponse('error', null, $exception->errors(), 422)); } }