function Response::assertStatusCodeRange
2 calls to Response::assertStatusCodeRange()
- Response::withStatus in vendor/
guzzlehttp/ psr7/ src/ Response.php - Return an instance with the specified status code and, optionally, reason phrase.
- Response::__construct in vendor/
guzzlehttp/ psr7/ src/ Response.php
File
-
vendor/
guzzlehttp/ psr7/ src/ Response.php, line 155
Class
- Response
- PSR-7 response implementation.
Namespace
GuzzleHttp\Psr7Code
private function assertStatusCodeRange(int $statusCode) : void {
if ($statusCode < 100 || $statusCode >= 600) {
throw new \InvalidArgumentException('Status code must be an integer value between 1xx and 5xx.');
}
}