1# http_err.et -- Error codes for the Cyrus HTTP server
2#
3# Copyright (c) 1994-2011 Carnegie Mellon University.  All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions
7# are met:
8#
9# 1. Redistributions of source code must retain the above copyright
10#    notice, this list of conditions and the following disclaimer.
11#
12# 2. Redistributions in binary form must reproduce the above copyright
13#    notice, this list of conditions and the following disclaimer in
14#    the documentation and/or other materials provided with the
15#    distribution.
16#
17# 3. The name "Carnegie Mellon University" must not be used to
18#    endorse or promote products derived from this software without
19#    prior written permission. For permission or any legal
20#    details, please contact
21#      Carnegie Mellon University
22#      Center for Technology Transfer and Enterprise Creation
23#      4615 Forbes Avenue
24#      Suite 302
25#      Pittsburgh, PA  15213
26#      (412) 268-7393, fax: (412) 268-7395
27#      innovation@andrew.cmu.edu
28#
29# 4. Redistributions of any form whatsoever must retain the following
30#    acknowledgment:
31#    "This product includes software developed by Computing Services
32#     at Carnegie Mellon University (http://www.cmu.edu/computing/)."
33#
34# CARNEGIE MELLON UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO
35# THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
36# AND FITNESS, IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY BE LIABLE
37# FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
38# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
39# AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
40# OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
41#
42
43error_table http
44
45# HTTP Response Status Codes (from draft-ietf-httpbis-semantics unless otherwise noted)
46
47# Informational 1xx (Interim connection status or request progress)
48
49ec HTTP_CONTINUE,
50   "100 Continue"
51
52ec HTTP_SWITCH_PROT,
53   "101 Switching Protocols"
54
55ec HTTP_PROCESSING,
56   "102 Processing"                      /* RFC 2518 (WebDAV) */
57
58ec HTTP_EARLY_HINTS,
59   "103 Early Hints"                     /* RFC 8297 (Indicating Hints) */
60
61
62# Successful 2xx (Request successfully received, understood, and accepted)
63
64ec HTTP_OK,
65   "200 OK"
66
67ec HTTP_CREATED,
68   "201 Created"
69
70ec HTTP_ACCEPTED,
71   "202 Accepted"
72
73ec HTTP_NON_AUTHORITATIVE,
74   "203 Non-Authoritative Information"
75
76ec HTTP_NO_CONTENT,
77   "204 No Content"
78
79ec HTTP_RESET_CONTENT,
80   "205 Reset Content"
81
82ec HTTP_PARTIAL,
83   "206 Partial Content"
84
85ec HTTP_MULTI_STATUS,
86   "207 Multi-Status"                    /* RFC 4918 (WebDAV) */
87
88ec HTTP_DUPLICATE,
89   "208 Already Reported"                /* RFC 5842 (Binding Extn to WebDAV) */
90
91ec HTTP_IM_USED,
92   "226 IM Used"                         /* RFC 3229 (Delta Encoding in HTTP) */
93
94
95# Redirection 3xx (Further action must be taken to complete the request)
96
97ec HTTP_MULTIPLE,
98   "300 Multiple Choices"
99
100ec HTTP_MOVED,
101   "301 Moved Permanently"
102
103ec HTTP_FOUND,
104   "302 Found"
105
106ec HTTP_SEE_OTHER,
107   "303 See Other"
108
109ec HTTP_NOT_MODIFIED,
110   "304 Not Modified"
111
112ec HTTP_USE_PROXY,
113   "305 Use Proxy"
114
115ec HTTP_306,
116   "306 (Unused)"                        /* Formerly "Switch Proxy" */
117
118ec HTTP_TEMP_REDIRECT,
119   "307 Temporary Redirect"
120
121ec HTTP_PERM_REDIRECT,
122   "308 Permanent Redirect"
123
124
125# Client Error 4xx (The request contains bad syntax or cannot be fulfilled)
126
127ec HTTP_BAD_REQUEST,
128   "400 Bad Request"
129
130ec HTTP_UNAUTHORIZED,
131   "401 Unauthorized"
132
133ec HTTP_PAYMENT_REQUIRED,
134   "402 Payment Required"
135
136ec HTTP_FORBIDDEN,
137   "403 Forbidden"
138
139ec HTTP_NOT_FOUND,
140   "404 Not Found"
141
142ec HTTP_NOT_ALLOWED,
143   "405 Method Not Allowed"
144
145ec HTTP_NOT_ACCEPTABLE,
146   "406 Not Acceptable"
147
148ec HTTP_PROXY_AUTH,
149   "407 Proxy Authentication Required"
150
151ec HTTP_TIMEOUT,
152   "408 Request Timeout"
153
154ec HTTP_CONFLICT,
155   "409 Conflict"
156
157ec HTTP_GONE,
158   "410 Gone"
159
160ec HTTP_LENGTH_REQUIRED,
161   "411 Length Required"
162
163ec HTTP_PRECOND_FAILED,
164   "412 Precondition Failed"
165
166ec HTTP_PAYLOAD_TOO_LARGE,
167   "413 Payload Too Large"
168
169ec HTTP_URI_TOO_LONG,
170   "414 URI Too Long"
171
172ec HTTP_BAD_MEDIATYPE,
173   "415 Unsupported Media Type"
174
175ec HTTP_BAD_CE,
176   "415 Unsupported Media Type"          /* RFC 7694 (Client-Initiated C-E) */
177
178ec HTTP_BAD_RANGE,
179   "416 Range Not Satisfiable"
180
181ec HTTP_EXPECT_FAILED,
182   "417 Expectation Failed"
183
184ec HTTP_418,
185   "418 (Unused)"                        /* Formerly "I'm a teapot" (RFC 2324) */
186
187ec HTTP_MISDIRECTED,
188   "421 Misdirected Request"             /* RFC 7540 (HTTP/2) */
189
190ec HTTP_UNPROCESSABLE,
191   "422 Unprocessable Entity"
192
193ec HTTP_LOCKED,
194   "423 Locked"                          /* RFC 4918 (WebDAV) */
195
196ec HTTP_FAILED_DEP,
197   "424 Failed Dependency"               /* RFC 4918 (WebDAV) */
198
199ec HTTP_TOO_EARLY,
200   "425 Too Early"                       /* RFC 8470 (Using Early Data) */
201
202ec HTTP_UPGRADE,
203   "426 Upgrade Required"
204
205ec HTTP_PRECOND_REQUIRED,
206   "428 Precondition Required"           /* RFC 6585 (Additional Status Codes) */
207
208ec HTTP_TOO_MANY_REQUESTS,
209   "429 Too Many Requests"               /* RFC 6585 (Additional Status Codes) */
210
211ec HTTP_HEADERS_TOO_LARGE,
212   "431 Request Header Fields Too Large" /* RFC 6585 (Additional Status Codes) */
213
214ec HTTP_CENSORED,
215   "451 Unavailable For Legal Reasons"   /* RFC 7725 (Report Legal Obstacles) */
216
217
218# Server Error 5xx (The server is incapable of performing the request)
219
220ec HTTP_SERVER_ERROR,
221   "500 Internal Server Error"
222
223ec HTTP_NOT_IMPLEMENTED,
224   "501 Not Implemented"
225
226ec HTTP_BAD_GATEWAY,
227   "502 Bad Gateway"
228
229ec HTTP_UNAVAILABLE,
230   "503 Service Unavailable"
231
232ec HTTP_SHUTDOWN,
233   "503 Service Unavailable"             /* Shutdown file vs other issues */
234
235ec HTTP_GATEWAY_TIMEOUT,
236   "504 Gateway Timeout"
237
238ec HTTP_BAD_VERSION,
239   "505 HTTP Version Not Supported"
240
241ec HTTP_VARIANT_NEGOTIATES,
242   "506 Variant Also Negotiates"         /* RFC 2295 (Transparent Content Neg) */
243
244ec HTTP_NO_STORAGE,
245   "507 Insufficient Storage"            /* RFC 4918 (WebDAV) */
246
247ec HTTP_LOOP,
248   "508 Loop Detected"                   /* RFC 5842 (Binding Extn to WebDAV) */
249
250ec HTTP_NETWORK_AUTH,
251   "511 Network Authentication Required" /* RFC 6585 (Additional Status Codes) */
252
253
254end
255