Skip to content

Commit

Permalink
DP-425 Conflicting HTTP Status Codes
Browse files Browse the repository at this point in the history
Batch Error response changed to 400
  • Loading branch information
tomonorman authored and yaroslavmo committed Dec 2, 2021
1 parent 9f85a29 commit abf920a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Exceptions/BatchException.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit abf920a

Please sign in to comment.