WIP
continuous-integration/drone/push Build is passing Details

maxime.batista 1 year ago
parent bfb216bfaf
commit 954f82fa91

@ -4,6 +4,7 @@ namespace IQBall\Api;
use IQBall\Core\Control;
use IQBall\Core\ControlSchemaErrorResponseFactory;
use IQBall\Core\Http\HttpCodes;
use IQBall\Core\Http\HttpRequest;
use IQBall\Core\Http\HttpResponse;
use IQBall\Core\Http\JsonHttpResponse;
@ -13,7 +14,7 @@ class APIControl {
private static function errorFactory(): ControlSchemaErrorResponseFactory {
return new class () implements ControlSchemaErrorResponseFactory {
public function apply(array $failures): HttpResponse {
return new JsonHttpResponse($failures);
return new JsonHttpResponse($failures, HttpCodes::BAD_REQUEST);
}
};
}

Loading…
Cancel
Save