Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
seleniumhq
GitHub Repository: seleniumhq/selenium
Path: blob/trunk/third_party/closure/goog/net/httpstatusname.js
2868 views
1
// Copyright 2016 The Closure Library Authors. All Rights Reserved.
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
15
/**
16
* @fileoverview Names for HTTP status codes
17
*/
18
19
goog.provide('goog.net.HttpStatusName');
20
21
22
/**
23
* HTTP Status Code Names defined in RFC 2616 and RFC 6585.
24
* @see http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
25
* @see http://tools.ietf.org/html/rfc6585
26
* @type {!Object<number, string>}
27
*/
28
goog.net.HttpStatusName = {
29
// Informational 1xx
30
100: 'Continue',
31
101: 'Switching Protocols',
32
33
// Successful 2xx
34
200: 'OK',
35
201: 'Created',
36
202: 'Accepted',
37
203: 'Non-Authoritative Information',
38
204: 'No Content',
39
205: 'Reset Content',
40
206: 'Partial Content',
41
42
// Redirection 3xx
43
300: 'Multiple Choices',
44
301: 'Moved Permanently',
45
302: 'Found',
46
303: 'See Other',
47
304: 'Not Modified',
48
305: 'Use Proxy',
49
307: 'Temporary Redirect',
50
51
// Client Error 4xx
52
400: 'Bad Request',
53
401: 'Unauthorized',
54
402: 'Payment Required',
55
403: 'Forbidden',
56
404: 'Not Found',
57
405: 'Method Not Allowed',
58
406: 'Not Acceptable',
59
407: 'Proxy Authentication Required',
60
408: 'Request Timeout',
61
409: 'Conflict',
62
410: 'Gone',
63
411: 'Length Required',
64
412: 'Precondition Failed',
65
413: 'Request Entity Too Large',
66
414: 'Request-URI Too Long',
67
415: 'Unsupported Media Type',
68
416: 'Requested Range Not Satisfiable',
69
417: 'Expectation Failed',
70
428: 'Precondition Required',
71
429: 'Too Many Requests',
72
431: 'Request Header Fields Too Large',
73
74
// Server Error 5xx
75
500: 'Internal Server Error',
76
501: 'Not Implemented',
77
502: 'Bad Gateway',
78
503: 'Service Unavailable',
79
504: 'Gateway Timeout',
80
505: 'HTTP Version Not Supported',
81
511: 'Network Authentication Required'
82
};
83
84