createResponse()
createResponse(int $code = 200, string $reasonPhrase = '') : \Psr\Http\Message\ResponseInterface
Create a new response.
Parameters
int | $code | HTTP status code; defaults to 200 |
string | $reasonPhrase | Reason phrase to associate with status code in generated response; if none is provided implementations MAY use the defaults as suggested in the HTTP specification. |