trait Illuminate / Http / Client / Concerns / DeterminesStatusCode

DeterminesStatusCode

Methods

public

ok ( ) : bool

Determine if the response code was 200 "OK" response.

public

created ( ) : bool

Determine if the response code was 201 "Created" response.

public

accepted ( ) : bool

Determine if the response code was 202 "Accepted" response.

public

noContent ( $status ) : bool

Determine if the response code was the given status code and the body has no content.

Parameters

  • $status int
public

movedPermanently ( ) : bool

Determine if the response code was a 301 "Moved Permanently".

public

found ( ) : bool

Determine if the response code was a 302 "Found" response.

public

badRequest ( ) : bool

Determine if the response was a 400 "Bad Request" response.

public

unauthorized ( ) : bool

Determine if the response was a 401 "Unauthorized" response.

public

paymentRequired ( ) : bool

Determine if the response was a 402 "Payment Required" response.

public

forbidden ( ) : bool

Determine if the response was a 403 "Forbidden" response.

public

notFound ( ) : bool

Determine if the response was a 404 "Not Found" response.

public

requestTimeout ( ) : bool

Determine if the response was a 408 "Request Timeout" response.

public

conflict ( ) : bool

Determine if the response was a 409 "Conflict" response.

public

unprocessableEntity ( ) : bool

Determine if the response was a 422 "Unprocessable Entity" response.

public

tooManyRequests ( ) : bool

Determine if the response was a 429 "Too Many Requests" response.