Status#

class Status#

These represent the known HTTP status code values, plus various network and internal errors.

Note that no libsoup functions take or return this type directly; any function that works with status codes will accept unrecognized status codes as well.

Methods#

class Status
get_phrase() str#

Looks up the stock HTTP description of status_code.

There is no reason for you to ever use this function. If you wanted the textual description for the status_code of a given Message, you should just look at the message’s reason_phrase. However, you should only do that for use in debugging messages; HTTP reason phrases are not localized, and are not generally very descriptive anyway, and so they should never be presented to the user directly. Instead, you should create you own error messages based on the status code, and on what you were trying to do.

Fields#

class Status
ACCEPTED#

The type of the None singleton.

BAD_GATEWAY#

The type of the None singleton.

BAD_REQUEST#

The type of the None singleton.

CONFLICT#

The type of the None singleton.

CONTINUE#

The type of the None singleton.

CREATED#

The type of the None singleton.

EXPECTATION_FAILED#

The type of the None singleton.

FAILED_DEPENDENCY#

The type of the None singleton.

FORBIDDEN#

The type of the None singleton.

FOUND#

The type of the None singleton.

GATEWAY_TIMEOUT#

The type of the None singleton.

GONE#

The type of the None singleton.

HTTP_VERSION_NOT_SUPPORTED#

The type of the None singleton.

INSUFFICIENT_STORAGE#

The type of the None singleton.

INTERNAL_SERVER_ERROR#

The type of the None singleton.

INVALID_RANGE#

The type of the None singleton.

LENGTH_REQUIRED#

The type of the None singleton.

LOCKED#

The type of the None singleton.

METHOD_NOT_ALLOWED#

The type of the None singleton.

MISDIRECTED_REQUEST#

The type of the None singleton.

MOVED_PERMANENTLY#

The type of the None singleton.

MOVED_TEMPORARILY#

The type of the None singleton.

MULTIPLE_CHOICES#

The type of the None singleton.

MULTI_STATUS#

The type of the None singleton.

NONE#

The type of the None singleton.

NON_AUTHORITATIVE#

The type of the None singleton.

NOT_ACCEPTABLE#

The type of the None singleton.

NOT_APPEARING_IN_THIS_PROTOCOL#

The type of the None singleton.

NOT_EXTENDED#

The type of the None singleton.

NOT_FOUND#

The type of the None singleton.

NOT_IMPLEMENTED#

The type of the None singleton.

NOT_MODIFIED#

The type of the None singleton.

NO_CONTENT#

The type of the None singleton.

OK#

The type of the None singleton.

PARTIAL_CONTENT#

The type of the None singleton.

PAYMENT_REQUIRED#

The type of the None singleton.

PERMANENT_REDIRECT#

The type of the None singleton.

PRECONDITION_FAILED#

The type of the None singleton.

PROCESSING#

The type of the None singleton.

PROXY_AUTHENTICATION_REQUIRED#

The type of the None singleton.

PROXY_UNAUTHORIZED#

The type of the None singleton.

REQUESTED_RANGE_NOT_SATISFIABLE#

The type of the None singleton.

REQUEST_ENTITY_TOO_LARGE#

The type of the None singleton.

REQUEST_TIMEOUT#

The type of the None singleton.

REQUEST_URI_TOO_LONG#

The type of the None singleton.

RESET_CONTENT#

The type of the None singleton.

SEE_OTHER#

The type of the None singleton.

SERVICE_UNAVAILABLE#

The type of the None singleton.

SWITCHING_PROTOCOLS#

The type of the None singleton.

TEMPORARY_REDIRECT#

The type of the None singleton.

UNAUTHORIZED#

The type of the None singleton.

UNPROCESSABLE_ENTITY#

The type of the None singleton.

UNSUPPORTED_MEDIA_TYPE#

The type of the None singleton.

USE_PROXY#

The type of the None singleton.