File: http_err.et

package info (click to toggle)
cyrus-imapd 3.6.1-4%2Bdeb12u3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 80,688 kB
  • sloc: ansic: 255,928; perl: 97,730; javascript: 9,266; sh: 5,537; yacc: 2,651; cpp: 2,128; makefile: 2,099; lex: 660; xml: 621; python: 388; awk: 303; asm: 262
file content (260 lines) | stat: -rw-r--r-- 6,481 bytes parent folder | download
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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
# http_err.et -- Error codes for the Cyrus HTTP server
#
# Copyright (c) 1994-2011 Carnegie Mellon University.  All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in
#    the documentation and/or other materials provided with the
#    distribution.
#
# 3. The name "Carnegie Mellon University" must not be used to
#    endorse or promote products derived from this software without
#    prior written permission. For permission or any legal
#    details, please contact
#      Carnegie Mellon University
#      Center for Technology Transfer and Enterprise Creation
#      4615 Forbes Avenue
#      Suite 302
#      Pittsburgh, PA  15213
#      (412) 268-7393, fax: (412) 268-7395
#      innovation@andrew.cmu.edu
#
# 4. Redistributions of any form whatsoever must retain the following
#    acknowledgment:
#    "This product includes software developed by Computing Services
#     at Carnegie Mellon University (http://www.cmu.edu/computing/)."
#
# CARNEGIE MELLON UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO
# THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
# AND FITNESS, IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY BE LIABLE
# FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
# AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
# OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#

error_table http

# HTTP Response Status Codes
# (from draft-ietf-httpbis-semantics unless otherwise noted)
#
# Commented-out codes are currently unused by Cyrus

# Informational 1xx (Interim connection status or request progress)

ec HTTP_CONTINUE,
   "100 Continue"

ec HTTP_SWITCH_PROT,
   "101 Switching Protocols"

ec HTTP_PROCESSING,
   "102 Processing"                      /* RFC 2518 (WebDAV) */

ec HTTP_EARLY_HINTS,
   "103 Early Hints"                     /* RFC 8297 (Indicating Hints) */


# Successful 2xx (Request successfully received, understood, and accepted)

ec HTTP_OK,
   "200 OK"

ec HTTP_CREATED,
   "201 Created"

ec HTTP_ACCEPTED,
   "202 Accepted"

#ec HTTP_NON_AUTHORITATIVE,
#   "203 Non-Authoritative Information"

ec HTTP_NO_CONTENT,
   "204 No Content"

ec HTTP_RESET_CONTENT,
   "205 Reset Content"

ec HTTP_PARTIAL,
   "206 Partial Content"

ec HTTP_MULTI_STATUS,
   "207 Multi-Status"                    /* RFC 4918 (WebDAV) */

#ec HTTP_DUPLICATE,
#   "208 Already Reported"               /* RFC 5842 (Binding Extn to WebDAV) */

#ec HTTP_IM_USED,
#   "226 IM Used"                        /* RFC 3229 (Delta Encoding in HTTP) */


# Redirection 3xx (Further action must be taken to complete the request)

#ec HTTP_MULTIPLE,
#   "300 Multiple Choices"

ec HTTP_MOVED,
   "301 Moved Permanently"

ec HTTP_FOUND,
   "302 Found"

#ec HTTP_SEE_OTHER,
#   "303 See Other"

ec HTTP_NOT_MODIFIED,
   "304 Not Modified"

#ec HTTP_USE_PROXY,
#   "305 Use Proxy"

#ec HTTP_306,
#   "306 (Unused)"                       /* Formerly "Switch Proxy" */

#ec HTTP_TEMP_REDIRECT,
#   "307 Temporary Redirect"

#ec HTTP_PERM_REDIRECT,
#   "308 Permanent Redirect"


# Client Error 4xx (The request contains bad syntax or cannot be fulfilled)

ec HTTP_BAD_REQUEST,
   "400 Bad Request"

ec HTTP_UNAUTHORIZED,
   "401 Unauthorized"

#ec HTTP_PAYMENT_REQUIRED,
#   "402 Payment Required"

ec HTTP_FORBIDDEN,
   "403 Forbidden"

ec HTTP_NOT_FOUND,
   "404 Not Found"

ec HTTP_NOT_ALLOWED,
   "405 Method Not Allowed"

ec HTTP_NOT_ACCEPTABLE,
   "406 Not Acceptable"

#ec HTTP_PROXY_AUTH,
#   "407 Proxy Authentication Required"

ec HTTP_TIMEOUT,
   "408 Request Timeout"

ec HTTP_CONFLICT,
   "409 Conflict"

ec HTTP_GONE,
   "410 Gone"

ec HTTP_LENGTH_REQUIRED,
   "411 Length Required"

ec HTTP_PRECOND_FAILED,
   "412 Precondition Failed"

ec HTTP_PAYLOAD_TOO_LARGE,
   "413 Payload Too Large"

ec HTTP_URI_TOO_LONG,
   "414 URI Too Long"

ec HTTP_BAD_MEDIATYPE,
   "415 Unsupported Media Type"

ec HTTP_BAD_CE,
   "415 Unsupported Media Type"          /* RFC 7694 (Client-Initiated C-E) */

ec HTTP_BAD_RANGE,
   "416 Range Not Satisfiable"

ec HTTP_EXPECT_FAILED,
   "417 Expectation Failed"

#ec HTTP_418,
#   "418 (Unused)"                       /* Formerly "I'm a teapot" (RFC 2324) */

ec HTTP_MISDIRECTED,
   "421 Misdirected Request"

ec HTTP_UNPROCESSABLE,
   "422 Unprocessable Entity"

ec HTTP_LOCKED,
   "423 Locked"                          /* RFC 4918 (WebDAV) */

ec HTTP_FAILED_DEP,
   "424 Failed Dependency"               /* RFC 4918 (WebDAV) */

#ec HTTP_TOO_EARLY,
#   "425 Too Early"                      /* RFC 8470 (Using Early Data) */

ec HTTP_UPGRADE,
   "426 Upgrade Required"

#ec HTTP_PRECOND_REQUIRED,
#   "428 Precondition Required"          /* RFC 6585 (Additional Status Codes) */

#ec HTTP_TOO_MANY_REQUESTS,
#   "429 Too Many Requests"              /* RFC 6585 (Additional Status Codes) */

#ec HTTP_HEADERS_TOO_LARGE,
#   "431 Request Header Fields Too Large"/* RFC 6585 (Additional Status Codes) */

#ec HTTP_CENSORED,
#   "451 Unavailable For Legal Reasons"  /* RFC 7725 (Report Legal Obstacles) */


# Server Error 5xx (The server is incapable of performing the request)

ec HTTP_SERVER_ERROR,
   "500 Internal Server Error"

ec HTTP_NOT_IMPLEMENTED,
   "501 Not Implemented"

ec HTTP_BAD_GATEWAY,
   "502 Bad Gateway"

ec HTTP_UNAVAILABLE,
   "503 Service Unavailable"

ec HTTP_SHUTDOWN,
   "503 Service Unavailable"             /* Shutdown file vs other issues */

#ec HTTP_GATEWAY_TIMEOUT,
#   "504 Gateway Timeout"

ec HTTP_BAD_VERSION,
   "505 HTTP Version Not Supported"

#ec HTTP_VARIANT_NEGOTIATES,
#   "506 Variant Also Negotiates"        /* RFC 2295 (Transparent Content Neg) */

ec HTTP_NO_STORAGE,
   "507 Insufficient Storage"            /* RFC 4918 (WebDAV) */

#ec HTTP_LOOP,
#   "508 Loop Detected"                  /* RFC 5842 (Binding Extn to WebDAV) */

#ec HTTP_NOT_EXTENDED,
#   "510 Not Extended"                   /* RFC 2774 (An HTTP Extn Framework) */

#ec HTTP_NETWORK_AUTH,
#   "511 Network Authentication Required"/* RFC 6585 (Additional Status Codes) */


end