URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgo/] [go/] [net/] [http/] [status.go] - Rev 747
Compare with Previous | Blame | View Log
// Copyright 2009 The Go Authors. All rights reserved.// Use of this source code is governed by a BSD-style// license that can be found in the LICENSE file.package http// HTTP status codes, defined in RFC 2616.const (StatusContinue = 100StatusSwitchingProtocols = 101StatusOK = 200StatusCreated = 201StatusAccepted = 202StatusNonAuthoritativeInfo = 203StatusNoContent = 204StatusResetContent = 205StatusPartialContent = 206StatusMultipleChoices = 300StatusMovedPermanently = 301StatusFound = 302StatusSeeOther = 303StatusNotModified = 304StatusUseProxy = 305StatusTemporaryRedirect = 307StatusBadRequest = 400StatusUnauthorized = 401StatusPaymentRequired = 402StatusForbidden = 403StatusNotFound = 404StatusMethodNotAllowed = 405StatusNotAcceptable = 406StatusProxyAuthRequired = 407StatusRequestTimeout = 408StatusConflict = 409StatusGone = 410StatusLengthRequired = 411StatusPreconditionFailed = 412StatusRequestEntityTooLarge = 413StatusRequestURITooLong = 414StatusUnsupportedMediaType = 415StatusRequestedRangeNotSatisfiable = 416StatusExpectationFailed = 417StatusInternalServerError = 500StatusNotImplemented = 501StatusBadGateway = 502StatusServiceUnavailable = 503StatusGatewayTimeout = 504StatusHTTPVersionNotSupported = 505)var statusText = map[int]string{StatusContinue: "Continue",StatusSwitchingProtocols: "Switching Protocols",StatusOK: "OK",StatusCreated: "Created",StatusAccepted: "Accepted",StatusNonAuthoritativeInfo: "Non-Authoritative Information",StatusNoContent: "No Content",StatusResetContent: "Reset Content",StatusPartialContent: "Partial Content",StatusMultipleChoices: "Multiple Choices",StatusMovedPermanently: "Moved Permanently",StatusFound: "Found",StatusSeeOther: "See Other",StatusNotModified: "Not Modified",StatusUseProxy: "Use Proxy",StatusTemporaryRedirect: "Temporary Redirect",StatusBadRequest: "Bad Request",StatusUnauthorized: "Unauthorized",StatusPaymentRequired: "Payment Required",StatusForbidden: "Forbidden",StatusNotFound: "Not Found",StatusMethodNotAllowed: "Method Not Allowed",StatusNotAcceptable: "Not Acceptable",StatusProxyAuthRequired: "Proxy Authentication Required",StatusRequestTimeout: "Request Timeout",StatusConflict: "Conflict",StatusGone: "Gone",StatusLengthRequired: "Length Required",StatusPreconditionFailed: "Precondition Failed",StatusRequestEntityTooLarge: "Request Entity Too Large",StatusRequestURITooLong: "Request URI Too Long",StatusUnsupportedMediaType: "Unsupported Media Type",StatusRequestedRangeNotSatisfiable: "Requested Range Not Satisfiable",StatusExpectationFailed: "Expectation Failed",StatusInternalServerError: "Internal Server Error",StatusNotImplemented: "Not Implemented",StatusBadGateway: "Bad Gateway",StatusServiceUnavailable: "Service Unavailable",StatusGatewayTimeout: "Gateway Timeout",StatusHTTPVersionNotSupported: "HTTP Version Not Supported",}// StatusText returns a text for the HTTP status code. It returns the empty// string if the code is unknown.func StatusText(code int) string {return statusText[code]}
