Skip to content

Commit 56b90ed

Browse files
committed
default error code changed
1 parent 2de5261 commit 56b90ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Error/Exception/JsonApiException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class JSonApiException extends BadRequestException
99
{
1010
protected $requestErrors;
1111

12-
public function __construct(EntityInterface $entity, $message = null, $code = 422)
12+
public function __construct(EntityInterface $entity, $message = null, $code = 400)
1313
{
1414
$this->requestErrors = $entity->getErrors();
1515

0 commit comments

Comments
 (0)