HTTP

Provides convenience method for dealing with HTTP messages.

Methods

Returns the status message corresponding to an HTTP status code.

statusMessage(int $statusCode) : string
static
link

Transfer Protocol (HTTP) Status Code Registry http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml

Arguments

$statusCode

int

A status code conforming to RFC 2616.

Response

string

Send an HTTP status header, e.g. `HTTP/1.1 200 OK`.

statusHeader(int $statusCode) : void
static

Arguments

$statusCode

int

The status code to send.