blob: 3b011a0bff195331a0f59f7fe780c4346d2d5153 [file] [log] [blame]
Serge Bazanskicc25bdf2018-10-25 14:02:58 +02001// Copyright 2015 go-swagger maintainers
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package runtime
16
17// Statuses lists the most common HTTP status codes to default message
18// taken from https://httpstatuses.com/
19var Statuses = map[int]string{
20 100: "Continue",
21 101: "Switching Protocols",
22 102: "Processing",
23 103: "Checkpoint",
24 122: "URI too long",
25 200: "OK",
26 201: "Created",
27 202: "Accepted",
28 203: "Request Processed",
29 204: "No Content",
30 205: "Reset Content",
31 206: "Partial Content",
32 207: "Multi-Status",
33 208: "Already Reported",
34 226: "IM Used",
35 300: "Multiple Choices",
36 301: "Moved Permanently",
37 302: "Found",
38 303: "See Other",
39 304: "Not Modified",
40 305: "Use Proxy",
41 306: "Switch Proxy",
42 307: "Temporary Redirect",
43 308: "Permanent Redirect",
44 400: "Bad Request",
45 401: "Unauthorized",
46 402: "Payment Required",
47 403: "Forbidden",
48 404: "Not Found",
49 405: "Method Not Allowed",
50 406: "Not Acceptable",
51 407: "Proxy Authentication Required",
52 408: "Request Timeout",
53 409: "Conflict",
54 410: "Gone",
55 411: "Length Required",
56 412: "Precondition Failed",
57 413: "Request Entity Too Large",
58 414: "Request-URI Too Long",
59 415: "Unsupported Media Type",
60 416: "Request Range Not Satisfiable",
61 417: "Expectation Failed",
62 418: "I'm a teapot",
63 420: "Enhance Your Calm",
64 422: "Unprocessable Entity",
65 423: "Locked",
66 424: "Failed Dependency",
67 426: "Upgrade Required",
68 428: "Precondition Required",
69 429: "Too Many Requests",
70 431: "Request Header Fields Too Large",
71 444: "No Response",
72 449: "Retry With",
73 450: "Blocked by Windows Parental Controls",
74 451: "Wrong Exchange Server",
75 499: "Client Closed Request",
76 500: "Internal Server Error",
77 501: "Not Implemented",
78 502: "Bad Gateway",
79 503: "Service Unavailable",
80 504: "Gateway Timeout",
81 505: "HTTP Version Not Supported",
82 506: "Variant Also Negotiates",
83 507: "Insufficient Storage",
84 508: "Loop Detected",
85 509: "Bandwidth Limit Exceeded",
86 510: "Not Extended",
87 511: "Network Authentication Required",
88 598: "Network read timeout error",
89 599: "Network connect timeout error",
90}