Path: blob/trunk/third_party/closure/goog/net/httpstatusname.js
2868 views
// Copyright 2016 The Closure Library Authors. All Rights Reserved.1//2// Licensed under the Apache License, Version 2.0 (the "License");3// you may not use this file except in compliance with the License.4// You may obtain a copy of the License at5//6// http://www.apache.org/licenses/LICENSE-2.07//8// Unless required by applicable law or agreed to in writing, software9// distributed under the License is distributed on an "AS-IS" BASIS,10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.11// See the License for the specific language governing permissions and12// limitations under the License.1314/**15* @fileoverview Names for HTTP status codes16*/1718goog.provide('goog.net.HttpStatusName');192021/**22* HTTP Status Code Names defined in RFC 2616 and RFC 6585.23* @see http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html24* @see http://tools.ietf.org/html/rfc658525* @type {!Object<number, string>}26*/27goog.net.HttpStatusName = {28// Informational 1xx29100: 'Continue',30101: 'Switching Protocols',3132// Successful 2xx33200: 'OK',34201: 'Created',35202: 'Accepted',36203: 'Non-Authoritative Information',37204: 'No Content',38205: 'Reset Content',39206: 'Partial Content',4041// Redirection 3xx42300: 'Multiple Choices',43301: 'Moved Permanently',44302: 'Found',45303: 'See Other',46304: 'Not Modified',47305: 'Use Proxy',48307: 'Temporary Redirect',4950// Client Error 4xx51400: 'Bad Request',52401: 'Unauthorized',53402: 'Payment Required',54403: 'Forbidden',55404: 'Not Found',56405: 'Method Not Allowed',57406: 'Not Acceptable',58407: 'Proxy Authentication Required',59408: 'Request Timeout',60409: 'Conflict',61410: 'Gone',62411: 'Length Required',63412: 'Precondition Failed',64413: 'Request Entity Too Large',65414: 'Request-URI Too Long',66415: 'Unsupported Media Type',67416: 'Requested Range Not Satisfiable',68417: 'Expectation Failed',69428: 'Precondition Required',70429: 'Too Many Requests',71431: 'Request Header Fields Too Large',7273// Server Error 5xx74500: 'Internal Server Error',75501: 'Not Implemented',76502: 'Bad Gateway',77503: 'Service Unavailable',78504: 'Gateway Timeout',79505: 'HTTP Version Not Supported',80511: 'Network Authentication Required'81};828384