public getErrorResponse ( Neomerx\JsonApi\Contracts\Document\ErrorInterface | Neomerx\JsonApi\Contracts\Document\ErrorInterface[] | |
||
$errors | Neomerx\JsonApi\Contracts\Document\ErrorInterface | Neomerx\JsonApi\Contracts\Document\ErrorInterface[] | |
|
$statusCode | integer | |
$headers | array | |
Результат | mixed |
public function getErrorResponse($errors, $statusCode = self::HTTP_BAD_REQUEST, array $headers = []);
/** * @inheritdoc */ public function errors(ErrorResponseInterface $errors) { return $this->responses->getErrorResponse($errors->getErrors(), $errors->getHttpCode(), $errors->getHeaders()); }