/usr/include/libsoup-2.4/libsoup/soup-status.h is in libsoup2.4-dev 2.44.2-1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* soup-status.h: HTTP status code and status class definitions
*
* Copyright (C) 2001-2003, Ximian, Inc.
*/
#ifndef SOUP_STATUS_H
#define SOUP_STATUS_H 1
#include <libsoup/soup-types.h>
G_BEGIN_DECLS
#define SOUP_STATUS_IS_TRANSPORT_ERROR(status) ((status) > 0 && (status) < 100)
#define SOUP_STATUS_IS_INFORMATIONAL(status) ((status) >= 100 && (status) < 200)
#define SOUP_STATUS_IS_SUCCESSFUL(status) ((status) >= 200 && (status) < 300)
#define SOUP_STATUS_IS_REDIRECTION(status) ((status) >= 300 && (status) < 400)
#define SOUP_STATUS_IS_CLIENT_ERROR(status) ((status) >= 400 && (status) < 500)
#define SOUP_STATUS_IS_SERVER_ERROR(status) ((status) >= 500 && (status) < 600)
typedef enum {
SOUP_STATUS_NONE,
/* Transport Errors */
SOUP_STATUS_CANCELLED = 1,
SOUP_STATUS_CANT_RESOLVE,
SOUP_STATUS_CANT_RESOLVE_PROXY,
SOUP_STATUS_CANT_CONNECT,
SOUP_STATUS_CANT_CONNECT_PROXY,
SOUP_STATUS_SSL_FAILED,
SOUP_STATUS_IO_ERROR,
SOUP_STATUS_MALFORMED,
SOUP_STATUS_TRY_AGAIN,
SOUP_STATUS_TOO_MANY_REDIRECTS,
SOUP_STATUS_TLS_FAILED,
/* HTTP Status Codes */
SOUP_STATUS_CONTINUE = 100,
SOUP_STATUS_SWITCHING_PROTOCOLS = 101,
SOUP_STATUS_PROCESSING = 102, /* WebDAV */
SOUP_STATUS_OK = 200,
SOUP_STATUS_CREATED = 201,
SOUP_STATUS_ACCEPTED = 202,
SOUP_STATUS_NON_AUTHORITATIVE = 203,
SOUP_STATUS_NO_CONTENT = 204,
SOUP_STATUS_RESET_CONTENT = 205,
SOUP_STATUS_PARTIAL_CONTENT = 206,
SOUP_STATUS_MULTI_STATUS = 207, /* WebDAV */
SOUP_STATUS_MULTIPLE_CHOICES = 300,
SOUP_STATUS_MOVED_PERMANENTLY = 301,
SOUP_STATUS_FOUND = 302,
SOUP_STATUS_MOVED_TEMPORARILY = 302, /* RFC 2068 */
SOUP_STATUS_SEE_OTHER = 303,
SOUP_STATUS_NOT_MODIFIED = 304,
SOUP_STATUS_USE_PROXY = 305,
SOUP_STATUS_NOT_APPEARING_IN_THIS_PROTOCOL = 306, /* (reserved) */
SOUP_STATUS_TEMPORARY_REDIRECT = 307,
SOUP_STATUS_BAD_REQUEST = 400,
SOUP_STATUS_UNAUTHORIZED = 401,
SOUP_STATUS_PAYMENT_REQUIRED = 402, /* (reserved) */
SOUP_STATUS_FORBIDDEN = 403,
SOUP_STATUS_NOT_FOUND = 404,
SOUP_STATUS_METHOD_NOT_ALLOWED = 405,
SOUP_STATUS_NOT_ACCEPTABLE = 406,
SOUP_STATUS_PROXY_AUTHENTICATION_REQUIRED = 407,
SOUP_STATUS_PROXY_UNAUTHORIZED = SOUP_STATUS_PROXY_AUTHENTICATION_REQUIRED,
SOUP_STATUS_REQUEST_TIMEOUT = 408,
SOUP_STATUS_CONFLICT = 409,
SOUP_STATUS_GONE = 410,
SOUP_STATUS_LENGTH_REQUIRED = 411,
SOUP_STATUS_PRECONDITION_FAILED = 412,
SOUP_STATUS_REQUEST_ENTITY_TOO_LARGE = 413,
SOUP_STATUS_REQUEST_URI_TOO_LONG = 414,
SOUP_STATUS_UNSUPPORTED_MEDIA_TYPE = 415,
SOUP_STATUS_REQUESTED_RANGE_NOT_SATISFIABLE = 416,
SOUP_STATUS_INVALID_RANGE = SOUP_STATUS_REQUESTED_RANGE_NOT_SATISFIABLE,
SOUP_STATUS_EXPECTATION_FAILED = 417,
SOUP_STATUS_UNPROCESSABLE_ENTITY = 422, /* WebDAV */
SOUP_STATUS_LOCKED = 423, /* WebDAV */
SOUP_STATUS_FAILED_DEPENDENCY = 424, /* WebDAV */
SOUP_STATUS_INTERNAL_SERVER_ERROR = 500,
SOUP_STATUS_NOT_IMPLEMENTED = 501,
SOUP_STATUS_BAD_GATEWAY = 502,
SOUP_STATUS_SERVICE_UNAVAILABLE = 503,
SOUP_STATUS_GATEWAY_TIMEOUT = 504,
SOUP_STATUS_HTTP_VERSION_NOT_SUPPORTED = 505,
SOUP_STATUS_INSUFFICIENT_STORAGE = 507, /* WebDAV search */
SOUP_STATUS_NOT_EXTENDED = 510 /* RFC 2774 */
} SoupStatus;
const char *soup_status_get_phrase (guint status_code);
SOUP_AVAILABLE_IN_2_26
guint soup_status_proxify (guint status_code);
#define SOUP_HTTP_ERROR soup_http_error_quark()
GQuark soup_http_error_quark (void);
#ifndef SOUP_DISABLE_DEPRECATED
/* For introspection purposes, we create a duplicate enum type under
* the deprecated type name, since some (all?) bindings don't handle
* enum type typedefs the way we want.
*/
typedef enum {
SOUP_KNOWN_STATUS_CODE_NONE,
SOUP_KNOWN_STATUS_CODE_CANCELLED = 1,
SOUP_KNOWN_STATUS_CODE_CANT_RESOLVE,
SOUP_KNOWN_STATUS_CODE_CANT_RESOLVE_PROXY,
SOUP_KNOWN_STATUS_CODE_CANT_CONNECT,
SOUP_KNOWN_STATUS_CODE_CANT_CONNECT_PROXY,
SOUP_KNOWN_STATUS_CODE_SSL_FAILED,
SOUP_KNOWN_STATUS_CODE_IO_ERROR,
SOUP_KNOWN_STATUS_CODE_MALFORMED,
SOUP_KNOWN_STATUS_CODE_TRY_AGAIN,
SOUP_KNOWN_STATUS_CODE_TOO_MANY_REDIRECTS,
SOUP_KNOWN_STATUS_CODE_TLS_FAILED,
SOUP_KNOWN_STATUS_CODE_CONTINUE = 100,
SOUP_KNOWN_STATUS_CODE_SWITCHING_PROTOCOLS = 101,
SOUP_KNOWN_STATUS_CODE_PROCESSING = 102,
SOUP_KNOWN_STATUS_CODE_OK = 200,
SOUP_KNOWN_STATUS_CODE_CREATED = 201,
SOUP_KNOWN_STATUS_CODE_ACCEPTED = 202,
SOUP_KNOWN_STATUS_CODE_NON_AUTHORITATIVE = 203,
SOUP_KNOWN_STATUS_CODE_NO_CONTENT = 204,
SOUP_KNOWN_STATUS_CODE_RESET_CONTENT = 205,
SOUP_KNOWN_STATUS_CODE_PARTIAL_CONTENT = 206,
SOUP_KNOWN_STATUS_CODE_MULTI_STATUS = 207,
SOUP_KNOWN_STATUS_CODE_MULTIPLE_CHOICES = 300,
SOUP_KNOWN_STATUS_CODE_MOVED_PERMANENTLY = 301,
SOUP_KNOWN_STATUS_CODE_FOUND = 302,
SOUP_KNOWN_STATUS_CODE_MOVED_TEMPORARILY = 302,
SOUP_KNOWN_STATUS_CODE_SEE_OTHER = 303,
SOUP_KNOWN_STATUS_CODE_NOT_MODIFIED = 304,
SOUP_KNOWN_STATUS_CODE_USE_PROXY = 305,
SOUP_KNOWN_STATUS_CODE_NOT_APPEARING_IN_THIS_PROTOCOL = 306,
SOUP_KNOWN_STATUS_CODE_TEMPORARY_REDIRECT = 307,
SOUP_KNOWN_STATUS_CODE_BAD_REQUEST = 400,
SOUP_KNOWN_STATUS_CODE_UNAUTHORIZED = 401,
SOUP_KNOWN_STATUS_CODE_PAYMENT_REQUIRED = 402,
SOUP_KNOWN_STATUS_CODE_FORBIDDEN = 403,
SOUP_KNOWN_STATUS_CODE_NOT_FOUND = 404,
SOUP_KNOWN_STATUS_CODE_METHOD_NOT_ALLOWED = 405,
SOUP_KNOWN_STATUS_CODE_NOT_ACCEPTABLE = 406,
SOUP_KNOWN_STATUS_CODE_PROXY_AUTHENTICATION_REQUIRED = 407,
SOUP_KNOWN_STATUS_CODE_PROXY_UNAUTHORIZED = SOUP_KNOWN_STATUS_CODE_PROXY_AUTHENTICATION_REQUIRED,
SOUP_KNOWN_STATUS_CODE_REQUEST_TIMEOUT = 408,
SOUP_KNOWN_STATUS_CODE_CONFLICT = 409,
SOUP_KNOWN_STATUS_CODE_GONE = 410,
SOUP_KNOWN_STATUS_CODE_LENGTH_REQUIRED = 411,
SOUP_KNOWN_STATUS_CODE_PRECONDITION_FAILED = 412,
SOUP_KNOWN_STATUS_CODE_REQUEST_ENTITY_TOO_LARGE = 413,
SOUP_KNOWN_STATUS_CODE_REQUEST_URI_TOO_LONG = 414,
SOUP_KNOWN_STATUS_CODE_UNSUPPORTED_MEDIA_TYPE = 415,
SOUP_KNOWN_STATUS_CODE_REQUESTED_RANGE_NOT_SATISFIABLE = 416,
SOUP_KNOWN_STATUS_CODE_INVALID_RANGE = SOUP_KNOWN_STATUS_CODE_REQUESTED_RANGE_NOT_SATISFIABLE,
SOUP_KNOWN_STATUS_CODE_EXPECTATION_FAILED = 417,
SOUP_KNOWN_STATUS_CODE_UNPROCESSABLE_ENTITY = 422,
SOUP_KNOWN_STATUS_CODE_LOCKED = 423,
SOUP_KNOWN_STATUS_CODE_FAILED_DEPENDENCY = 424,
SOUP_KNOWN_STATUS_CODE_INTERNAL_SERVER_ERROR = 500,
SOUP_KNOWN_STATUS_CODE_NOT_IMPLEMENTED = 501,
SOUP_KNOWN_STATUS_CODE_BAD_GATEWAY = 502,
SOUP_KNOWN_STATUS_CODE_SERVICE_UNAVAILABLE = 503,
SOUP_KNOWN_STATUS_CODE_GATEWAY_TIMEOUT = 504,
SOUP_KNOWN_STATUS_CODE_HTTP_VERSION_NOT_SUPPORTED = 505,
SOUP_KNOWN_STATUS_CODE_INSUFFICIENT_STORAGE = 507,
SOUP_KNOWN_STATUS_CODE_NOT_EXTENDED = 510
} SoupKnownStatusCode;
#endif
G_END_DECLS
#endif /* SOUP_STATUS_H */
|