/ external / libfetch / httperr.h
httperr.h
 1  static struct fetcherr http_errlist[] = {
 2      { 100, FETCH_OK, "Continue" },
 3      { 101, FETCH_OK, "Switching Protocols" },
 4      { 200, FETCH_OK, "OK" },
 5      { 201, FETCH_OK, "Created" },
 6      { 202, FETCH_OK, "Accepted" },
 7      { 203, FETCH_INFO, "Non-Authoritative Information" },
 8      { 204, FETCH_OK, "No Content" },
 9      { 205, FETCH_OK, "Reset Content" },
10      { 206, FETCH_OK, "Partial Content" },
11      { 300, FETCH_MOVED, "Multiple Choices" },
12      { 301, FETCH_MOVED, "Moved Permanently" },
13      { 302, FETCH_MOVED, "Moved Temporarily" },
14      { 303, FETCH_MOVED, "See Other" },
15      { 304, FETCH_OK, "Not Modified" },
16      { 305, FETCH_INFO, "Use Proxy" },
17      { 307, FETCH_MOVED, "Temporary Redirect" },
18      { 308, FETCH_MOVED, "Permanent Redirect" },
19      { 400, FETCH_PROTO, "Bad Request" },
20      { 401, FETCH_AUTH, "Unauthorized" },
21      { 402, FETCH_AUTH, "Payment Required" },
22      { 403, FETCH_AUTH, "Forbidden" },
23      { 404, FETCH_UNAVAIL, "Not Found" },
24      { 405, FETCH_PROTO, "Method Not Allowed" },
25      { 406, FETCH_PROTO, "Not Acceptable" },
26      { 407, FETCH_AUTH, "Proxy Authentication Required" },
27      { 408, FETCH_TIMEOUT, "Request Time-out" },
28      { 409, FETCH_EXISTS, "Conflict" },
29      { 410, FETCH_UNAVAIL, "Gone" },
30      { 411, FETCH_PROTO, "Length Required" },
31      { 412, FETCH_SERVER, "Precondition Failed" },
32      { 413, FETCH_PROTO, "Request Entity Too Large" },
33      { 414, FETCH_PROTO, "Request-URI Too Large" },
34      { 415, FETCH_PROTO, "Unsupported Media Type" },
35      { 416, FETCH_UNAVAIL, "Requested Range Not Satisfiable" },
36      { 417, FETCH_SERVER, "Expectation Failed" },
37      { 500, FETCH_SERVER, "Internal Server Error" },
38      { 501, FETCH_PROTO, "Not Implemented" },
39      { 502, FETCH_SERVER, "Bad Gateway" },
40      { 503, FETCH_TEMP, "Service Unavailable" },
41      { 504, FETCH_TIMEOUT, "Gateway Time-out" },
42      { 505, FETCH_PROTO, "HTTP Version not supported" },
43      { 999, FETCH_PROTO, "Protocol error" },
44      { -1, FETCH_UNKNOWN, "Unknown HTTP error" }
45  };