diff --git a/src/Exceptions/BatchException.php b/src/Exceptions/BatchException.php index 2ef3515a..04650b82 100644 --- a/src/Exceptions/BatchException.php +++ b/src/Exceptions/BatchException.php @@ -25,7 +25,7 @@ class BatchException extends RestException */ public function __construct($responses, $message = null, $code = null, $previous = null) { - parent::__construct(Response::HTTP_INTERNAL_SERVER_ERROR, $message, + parent::__construct(Response::HTTP_BAD_REQUEST, $message, $code ?: ErrorCodes::BATCH_ERROR, $previous, $responses); }