:right-sidebar: True Status =================================================================== .. currentmodule:: gi.repository.Soup .. class:: Status :no-contents-entry: 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 ------- .. rst-class:: interim-class .. class:: Status :no-index: .. method:: 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 :obj:`~gi.repository.Soup.Message.props.status_code` of a given :obj:`~gi.repository.Soup.Message`\, you should just look at the message's :obj:`~gi.repository.Soup.Message.props.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 ------ .. rst-class:: interim-class .. class:: Status :no-index: .. attribute:: ACCEPTED The type of the None singleton. .. attribute:: BAD_GATEWAY The type of the None singleton. .. attribute:: BAD_REQUEST The type of the None singleton. .. attribute:: CONFLICT The type of the None singleton. .. attribute:: CONTINUE The type of the None singleton. .. attribute:: CREATED The type of the None singleton. .. attribute:: EXPECTATION_FAILED The type of the None singleton. .. attribute:: FAILED_DEPENDENCY The type of the None singleton. .. attribute:: FORBIDDEN The type of the None singleton. .. attribute:: FOUND The type of the None singleton. .. attribute:: GATEWAY_TIMEOUT The type of the None singleton. .. attribute:: GONE The type of the None singleton. .. attribute:: HTTP_VERSION_NOT_SUPPORTED The type of the None singleton. .. attribute:: INSUFFICIENT_STORAGE The type of the None singleton. .. attribute:: INTERNAL_SERVER_ERROR The type of the None singleton. .. attribute:: INVALID_RANGE The type of the None singleton. .. attribute:: LENGTH_REQUIRED The type of the None singleton. .. attribute:: LOCKED The type of the None singleton. .. attribute:: METHOD_NOT_ALLOWED The type of the None singleton. .. attribute:: MISDIRECTED_REQUEST The type of the None singleton. .. attribute:: MOVED_PERMANENTLY The type of the None singleton. .. attribute:: MOVED_TEMPORARILY The type of the None singleton. .. attribute:: MULTIPLE_CHOICES The type of the None singleton. .. attribute:: MULTI_STATUS The type of the None singleton. .. attribute:: NONE The type of the None singleton. .. attribute:: NON_AUTHORITATIVE The type of the None singleton. .. attribute:: NOT_ACCEPTABLE The type of the None singleton. .. attribute:: NOT_APPEARING_IN_THIS_PROTOCOL The type of the None singleton. .. attribute:: NOT_EXTENDED The type of the None singleton. .. attribute:: NOT_FOUND The type of the None singleton. .. attribute:: NOT_IMPLEMENTED The type of the None singleton. .. attribute:: NOT_MODIFIED The type of the None singleton. .. attribute:: NO_CONTENT The type of the None singleton. .. attribute:: OK The type of the None singleton. .. attribute:: PARTIAL_CONTENT The type of the None singleton. .. attribute:: PAYMENT_REQUIRED The type of the None singleton. .. attribute:: PERMANENT_REDIRECT The type of the None singleton. .. attribute:: PRECONDITION_FAILED The type of the None singleton. .. attribute:: PROCESSING The type of the None singleton. .. attribute:: PROXY_AUTHENTICATION_REQUIRED The type of the None singleton. .. attribute:: PROXY_UNAUTHORIZED The type of the None singleton. .. attribute:: REQUESTED_RANGE_NOT_SATISFIABLE The type of the None singleton. .. attribute:: REQUEST_ENTITY_TOO_LARGE The type of the None singleton. .. attribute:: REQUEST_TIMEOUT The type of the None singleton. .. attribute:: REQUEST_URI_TOO_LONG The type of the None singleton. .. attribute:: RESET_CONTENT The type of the None singleton. .. attribute:: SEE_OTHER The type of the None singleton. .. attribute:: SERVICE_UNAVAILABLE The type of the None singleton. .. attribute:: SWITCHING_PROTOCOLS The type of the None singleton. .. attribute:: TEMPORARY_REDIRECT The type of the None singleton. .. attribute:: UNAUTHORIZED The type of the None singleton. .. attribute:: UNPROCESSABLE_ENTITY The type of the None singleton. .. attribute:: UNSUPPORTED_MEDIA_TYPE The type of the None singleton. .. attribute:: USE_PROXY The type of the None singleton.