src/HttpConverter.php
protected function toResponse(ApiProblem $problem) : ResponseInterface
    {
        $status = $problem->getStatus() ?: 500;

        $response = $this->responseFactory->createResponse($status);

        return $response;
    }
protected function toResponse(ApiProblem $problem) : ResponseInterface
    {
        $status = $problem->getStatus() ?: 500;

        $response = $this->responseFactory->createResponse($status);

        return $response;
    }
protected function toResponse ( ApiProblem $ problem ) : ResponseInterface { $ status = $ problem -> getStatus ( ) ? : 500 ; $ response = $ this -> responseFactory -> createResponse ( $ status ) ; return $ response ; }
Converts a problem to a provided Response, without the format-sensitive bits.

@param ApiProblem $problem
The problem to convert.

@return ResponseInterface
The appropriate response object.
Converts a problem to a provided Response without the format - sensitive bits .