Skip to content

Commit

Permalink
Default message reason phrase as "Unknown Status Code"
Browse files Browse the repository at this point in the history
  • Loading branch information
fenric committed Nov 30, 2018
1 parent 64e1f6b commit e804448
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function withStatus($statusCode, $reasonPhrase = '') : ResponseInterface
{
if ('' === $reasonPhrase)
{
$reasonPhrase = PHRASES[$statusCode] ?? '';
$reasonPhrase = PHRASES[$statusCode] ?? 'Unknown Status Code';
}

$this->validateStatusCode($statusCode);
Expand Down

0 comments on commit e804448

Please sign in to comment.