DeterminesStatusCode
Methods
ok ( ) : bool
Determine if the response code was 200 "OK" response.
created ( ) : bool
Determine if the response code was 201 "Created" response.
accepted ( ) : bool
Determine if the response code was 202 "Accepted" response.
noContent ( $status ) : bool
Determine if the response code was the given status code and the body has no content.
Parameters
- $status int
movedPermanently ( ) : bool
Determine if the response code was a 301 "Moved Permanently".
found ( ) : bool
Determine if the response code was a 302 "Found" response.
badRequest ( ) : bool
Determine if the response was a 400 "Bad Request" response.
unauthorized ( ) : bool
Determine if the response was a 401 "Unauthorized" response.
paymentRequired ( ) : bool
Determine if the response was a 402 "Payment Required" response.
forbidden ( ) : bool
Determine if the response was a 403 "Forbidden" response.
notFound ( ) : bool
Determine if the response was a 404 "Not Found" response.
requestTimeout ( ) : bool
Determine if the response was a 408 "Request Timeout" response.
conflict ( ) : bool
Determine if the response was a 409 "Conflict" response.
unprocessableEntity ( ) : bool
Determine if the response was a 422 "Unprocessable Entity" response.
tooManyRequests ( ) : bool
Determine if the response was a 429 "Too Many Requests" response.