Extends Message.
$code
$reasonPhrase
Return an instance with the specified status code and, optionally, reason phrase.
string
*
= ""
static
Example:
$response = $response->withStatus(599, 'Something went wrong.'); echo $response->getStatusCode(); // Outputs: 599 echo $response->getReasonPhrase(); // Outputs: Something went wrong.
There was an error while loading. Please reload this page.