class BadResponseException extends Exception implements ExceptionInterface
Methods
| BadResponseException | setResponseBody(string $body) | |
| string |
getResponseBody()
The content of the response |
|
| integer |
getStatusCode()
The response HTTP status code |
|
| BadResponseException |
setHttpStatusCode(integer $httpStatusCode)
Set the response HTTP status code |
|
| bool |
isClientError()
Checks if HTTP Status code is a Client Error (4xx) |
|
| bool |
isServerError()
Checks if HTTP Status code is Server Error (5xx) |
|
| static | fromGuzzleResponse(BadResponseException $e) |
Details
at line 37
public BadResponseException
setResponseBody(string $body)
at line 49
public string
getResponseBody()
The content of the response
at line 59
public integer
getStatusCode()
The response HTTP status code
at line 70
public BadResponseException
setHttpStatusCode(integer $httpStatusCode)
Set the response HTTP status code
at line 82
public bool
isClientError()
Checks if HTTP Status code is a Client Error (4xx)
at line 92
public bool
isServerError()
Checks if HTTP Status code is Server Error (5xx)