Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products. If you have feedback or questions as you navigate the site, click Send Feedback.

As PHP version 5.5 is no longer supported by the community, we strongly recommend new apps use the PHP 7+ runtime.

\google\appengine\ext\cloud_storage_streams\HttpResponse

Stay organized with collections Save and categorize content based on your preferences.

FINAL

Declares well known HTTP response codes and associated error messages.

Constants

OK

CREATED

NO_CONTENT

PARTIAL_CONTENT

NOT_MODIFIED

RESUME_INCOMPLETE

BAD_REQUEST

UNAUTHORIZED

FORBIDDEN

NOT_FOUND

REQUEST_TIMEOUT

PRECONDITION_FAILED

RANGE_NOT_SATISFIABLE

INTERNAL_SERVER_ERROR

BAD_GATEWAY

SERVICE_UNAVAILABLE

GATEWAY_TIMEOUT

Methods

getStatusMessage

STATIC   

getStatusMessage(integer $code)

Get the status message string for a given HTTP response code.

Parameters

Name Description

$code

integer

The HTTP response code.