# 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/1.1 Response Status Codes (RFC 7231)
# Informational 1xx (Interim connection status or request progress)
ec HTTP_CONTINUE,
"100 Continue"
ec HTTP_SWITCH_PROT,
"101 Switching Protocols"
# 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"
# 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_USE_PROXY,
"305 Use Proxy"
ec HTTP_TEMP_REDIRECT,
"307 Temporary Redirect"
# Client Error 4xx (The request contains bad syntax or cannot be fulfilled)
ec HTTP_BAD_REQUEST,
"400 Bad Request"
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_TIMEOUT,
"408 Request Timeout"
ec HTTP_CONFLICT,
"409 Conflict"
ec HTTP_GONE,
"410 Gone"
ec HTTP_LENGTH_REQUIRED,
"411 Length Required"
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_EXPECT_FAILED,
"417 Expectation Failed"
ec HTTP_UPGRADE,
"426 Upgrade Required"
# 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_GATEWAY_TIMEOUT,
"504 Gateway Timeout"
ec HTTP_BAD_VERSION,
"505 HTTP Version Not Supported"
# Conditional Requests (RFC 7232)
ec HTTP_NOT_MODIFIED,
"304 Not Modified"
ec HTTP_PRECOND_FAILED,
"412 Precondition Failed"
# Range Requests (RFC 7233)
ec HTTP_PARTIAL,
"206 Partial Content"
ec HTTP_BAD_RANGE,
"416 Range Not Satisfiable"
# Authentication (RFC 7235)
ec HTTP_UNAUTHORIZED,
"401 Unauthorized"
ec HTTP_PROXY_AUTH,
"407 Proxy Authentication Required"
# Permanent Redirect (RFC 7538)
ec HTTP_PERM_REDIRECT,
"308 Permanent Redirect"
# HTTP/2 (RFC 7540)
ec HTTP_MISDIRECTED,
"421 Misdirected Request"
# Client-Initiated Content-Encoding (RFC 7694)
# Used to differentiate between unsupported Content-Encoding and Content-Type
ec HTTP_BAD_CE,
"415 Unsupported Media Type"
# Legally Restricted (RFC 7725)
ec HTTP_CENSORED,
"451 Unavailable For Legal Reasons"
# Additional HTTP Status Codes (RFC 6585)
ec HTTP_PRECOND_REQUIRED,
"428 Precondition Required"
ec HTTP_TOO_MANY_REQUESTS,
"429 Too Many Requests"
ec HTTP_HEADERS_TOO_LARGE,
"431 Request Header Fields Too Large"
ec HTTP_NETWORK_AUTH,
"511 Network Authentication Required"
# WebDAV (RFC 2518/4918)
ec HTTP_PROCESSING,
"102 Processing"
ec HTTP_MULTI_STATUS,
"207 Multi-Status"
ec HTTP_UNPROCESSABLE,
"422 Unprocessable Entity"
ec HTTP_LOCKED,
"423 Locked"
ec HTTP_FAILED_DEP,
"424 Failed Dependency"
ec HTTP_NO_STORAGE,
"507 Insufficient Storage"
# Binding Extensions to WebDAV (RFC 5842)
ec HTTP_DUPLICATE,
"208 Already Reported"
ec HTTP_LOOP,
"508 Loop Detected"
end