podman
90 строк · 2.5 Кб
1// 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{
20100: "Continue",
21101: "Switching Protocols",
22102: "Processing",
23103: "Checkpoint",
24122: "URI too long",
25200: "OK",
26201: "Created",
27202: "Accepted",
28203: "Request Processed",
29204: "No Content",
30205: "Reset Content",
31206: "Partial Content",
32207: "Multi-Status",
33208: "Already Reported",
34226: "IM Used",
35300: "Multiple Choices",
36301: "Moved Permanently",
37302: "Found",
38303: "See Other",
39304: "Not Modified",
40305: "Use Proxy",
41306: "Switch Proxy",
42307: "Temporary Redirect",
43308: "Permanent Redirect",
44400: "Bad Request",
45401: "Unauthorized",
46402: "Payment Required",
47403: "Forbidden",
48404: "Not Found",
49405: "Method Not Allowed",
50406: "Not Acceptable",
51407: "Proxy Authentication Required",
52408: "Request Timeout",
53409: "Conflict",
54410: "Gone",
55411: "Length Required",
56412: "Precondition Failed",
57413: "Request Entity Too Large",
58414: "Request-URI Too Long",
59415: "Unsupported Media Type",
60416: "Request Range Not Satisfiable",
61417: "Expectation Failed",
62418: "I'm a teapot",
63420: "Enhance Your Calm",
64422: "Unprocessable Entity",
65423: "Locked",
66424: "Failed Dependency",
67426: "Upgrade Required",
68428: "Precondition Required",
69429: "Too Many Requests",
70431: "Request Header Fields Too Large",
71444: "No Response",
72449: "Retry With",
73450: "Blocked by Windows Parental Controls",
74451: "Wrong Exchange Server",
75499: "Client Closed Request",
76500: "Internal Server Error",
77501: "Not Implemented",
78502: "Bad Gateway",
79503: "Service Unavailable",
80504: "Gateway Timeout",
81505: "HTTP Version Not Supported",
82506: "Variant Also Negotiates",
83507: "Insufficient Storage",
84508: "Loop Detected",
85509: "Bandwidth Limit Exceeded",
86510: "Not Extended",
87511: "Network Authentication Required",
88598: "Network read timeout error",
89599: "Network connect timeout error",
90}
91