An exception for terminatinating execution or to throw for unit testing.
HTTP messages consist of requests from a client to a server and responses from a server to a client.
Representation of an outgoing, server-side response.
getStatusCode()
Gets the response status code.
getReasonPhrase()
Gets the response reason phrase associated with the status code.
withStatus($code, $reasonPhrase='')
Return an instance with the specified status code and, optionally, reason phrase.