NilPortugues\Symfony\JsonApiBundle\Serializer\JsonApiResponseTrait::errorResponse PHP 메소드

errorResponse() 보호된 메소드

protected errorResponse ( string $json ) : Response
$json string
리턴 Symfony\Component\HttpFoundation\Response
    protected function errorResponse($json)
    {
        $error = new Error('Bad Request', json_decode($json));
        return $this->createResponse(new BadRequest(new ErrorBag([$error])));
    }