DeterminesStatusCode
trait DeterminesStatusCode
Methods
Determine if the response code was 200 "OK" response.
Determine if the response code was 201 "Created" response.
Determine if the response code was 202 "Accepted" response.
Determine if the response code was the given status code and the body has no content.
Determine if the response code was a 301 "Moved Permanently".
Determine if the response code was a 302 "Found" response.
Determine if the response code was a 304 "Not Modified" response.
Determine if the response was a 400 "Bad Request" response.
Determine if the response was a 401 "Unauthorized" response.
Determine if the response was a 402 "Payment Required" response.
Determine if the response was a 403 "Forbidden" response.
Determine if the response was a 404 "Not Found" response.
Determine if the response was a 408 "Request Timeout" response.
Determine if the response was a 409 "Conflict" response.
Determine if the response was a 422 "Unprocessable Content" response.
Determine if the response was a 422 "Unprocessable Content" response.
Determine if the response was a 429 "Too Many Requests" response.
Details
at line 12
bool
ok()
Determine if the response code was 200 "OK" response.
at line 20
bool
created()
Determine if the response code was 201 "Created" response.
at line 28
bool
accepted()
Determine if the response code was 202 "Accepted" response.
at line 36
bool
noContent(int $status = 204)
Determine if the response code was the given status code and the body has no content.
at line 44
bool
movedPermanently()
Determine if the response code was a 301 "Moved Permanently".
at line 52
bool
found()
Determine if the response code was a 302 "Found" response.
at line 60
bool
notModified()
Determine if the response code was a 304 "Not Modified" response.
at line 68
bool
badRequest()
Determine if the response was a 400 "Bad Request" response.
at line 76
bool
unauthorized()
Determine if the response was a 401 "Unauthorized" response.
at line 84
bool
paymentRequired()
Determine if the response was a 402 "Payment Required" response.
at line 92
bool
forbidden()
Determine if the response was a 403 "Forbidden" response.
at line 100
bool
notFound()
Determine if the response was a 404 "Not Found" response.
at line 108
bool
requestTimeout()
Determine if the response was a 408 "Request Timeout" response.
at line 116
bool
conflict()
Determine if the response was a 409 "Conflict" response.
at line 124
bool
unprocessableContent()
Determine if the response was a 422 "Unprocessable Content" response.
at line 132
bool
unprocessableEntity()
Determine if the response was a 422 "Unprocessable Content" response.
at line 140
bool
tooManyRequests()
Determine if the response was a 429 "Too Many Requests" response.