메소드 |
설명 |
|
__construct ( integer $code, string $reason ) |
Constructor. |
|
isClientError ( ) : boolean |
Helper to establish if the class of the status code
is client error (4xx). |
|
isInformational ( ) : boolean |
Helper to establish if the class of the status code
is informational (1xx). |
|
isRedirection ( ) : boolean |
Helper to establish if the class of the status code
is redirection (3xx). |
|
isServerError ( ) : boolean |
Helper to establish if the class of the status code
is server error (5xx). |
|
isSuccessful ( ) : boolean |
Helper to establish if the class of the status code
is successful (2xx). |
|
reasonPhrase ( ) : string |
Return the reason phrase |
|
response ( Psr\Http\Message\ResponseInterface $response ) : Psr\Http\Message\ResponseInterface |
Add the status code and reason phrase to a Response. |
|
statusClass ( ) : integer |
Return the status class of the response code. |
|
statusCode ( ) : integer |
Return the response code. |
|