Skip to content

Commit

Permalink
Fix: allow status codes above 500
Browse files Browse the repository at this point in the history
  • Loading branch information
ebln committed Sep 18, 2021
1 parent 73cff70 commit b297a2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Adapter/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public function withStatus($code, $reasonPhrase = ''): self
{
Assert::integer($code);
Assert::greaterThanEq($code, 100);
Assert::lessThanEq($code, 500);
Assert::lessThanEq($code, 599);

if ($this->setHeaderOnly) {
$setNoContent = self::STATUS_NO_CONTENT === $code;
Expand Down

0 comments on commit b297a2f

Please sign in to comment.