4.12 <SoupStatus>

Enumeration: <SoupStatus>

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.

Members

none

No status available. (Eg, the message has not been sent yet)

continue

100 Continue (HTTP)

switching-protocols

101 Switching Protocols (HTTP)

processing

102 Processing (WebDAV)

ok

200 Success (HTTP). Also used by many lower-level soup routines to indicate success.

created

201 Created (HTTP)

accepted

202 Accepted (HTTP)

non-authoritative

203 Non-Authoritative Information (HTTP)

no-content

204 No Content (HTTP)

reset-content

205 Reset Content (HTTP)

partial-content

206 Partial Content (HTTP)

multi-status

207 Multi-Status (WebDAV)

multiple-choices

300 Multiple Choices (HTTP)

moved-permanently

301 Moved Permanently (HTTP)

found

302 Found (HTTP)

moved-temporarily

302 Moved Temporarily (old name, RFC 2068)

see-other

303 See Other (HTTP)

not-modified

304 Not Modified (HTTP)

use-proxy

305 Use Proxy (HTTP)

not-appearing-in-this-protocol

306 [Unused] (HTTP)

temporary-redirect

307 Temporary Redirect (HTTP)

permanent-redirect

308 Permanent Redirect (HTTP)

bad-request

400 Bad Request (HTTP)

unauthorized

401 Unauthorized (HTTP)

payment-required

402 Payment Required (HTTP)

forbidden

403 Forbidden (HTTP)

not-found

404 Not Found (HTTP)

method-not-allowed

405 Method Not Allowed (HTTP)

not-acceptable

406 Not Acceptable (HTTP)

proxy-authentication-required

407 Proxy Authentication Required (HTTP)

proxy-unauthorized

shorter alias for proxy-authentication-required

request-timeout

408 Request Timeout (HTTP)

conflict

409 Conflict (HTTP)

gone

410 Gone (HTTP)

length-required

411 Length Required (HTTP)

precondition-failed

412 Precondition Failed (HTTP)

request-entity-too-large

413 Request Entity Too Large (HTTP)

request-uri-too-long

414 Request-URI Too Long (HTTP)

unsupported-media-type

415 Unsupported Media Type (HTTP)

requested-range-not-satisfiable

416 Requested Range Not Satisfiable (HTTP)

invalid-range

shorter alias for requested-range-not-satisfiable

expectation-failed

417 Expectation Failed (HTTP)

misdirected-request

421 Misdirected Request

unprocessable-entity

422 Unprocessable Entity (WebDAV)

locked

423 Locked (WebDAV)

failed-dependency

424 Failed Dependency (WebDAV)

internal-server-error

500 Internal Server Error (HTTP)

not-implemented

501 Not Implemented (HTTP)

bad-gateway

502 Bad Gateway (HTTP)

service-unavailable

503 Service Unavailable (HTTP)

gateway-timeout

504 Gateway Timeout (HTTP)

http-version-not-supported

505 HTTP Version Not Supported (HTTP)

insufficient-storage

507 Insufficient Storage (WebDAV)

not-extended

510 Not Extended (RFC 2774)

Procedures

Procedure: status:get-phrase status-code ⇒ %return

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 Message:status-code of a given Message, you should just look at the message’s Message: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.

status-code

Passed: an unsigned 32-bit integer.

an HTTP status code

%return

Returned: a string.

the (terse, English) description of status-code