Squid Web Cache master
Loading...
Searching...
No Matches
StatusCode.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Http
 

Enumerations

enum  Http::StatusCode {
  Http::scNone = 0 , Http::scContinue = 100 , Http::scSwitchingProtocols = 101 , Http::scProcessing = 102 ,
  Http::scEarlyHints = 103 , Http::scUploadResumptionSupported = 104 , Http::scOkay = 200 , Http::scCreated = 201 ,
  Http::scAccepted = 202 , Http::scNonAuthoritativeInformation = 203 , Http::scNoContent = 204 , Http::scResetContent = 205 ,
  Http::scPartialContent = 206 , Http::scMultiStatus = 207 , Http::scAlreadyReported = 208 , Http::scImUsed = 226 ,
  Http::scMultipleChoices = 300 , Http::scMovedPermanently = 301 , Http::scFound = 302 , Http::scSeeOther = 303 ,
  Http::scNotModified = 304 , Http::scUseProxy = 305 , Http::scTemporaryRedirect = 307 , Http::scPermanentRedirect = 308 ,
  Http::scBadRequest = 400 , Http::scUnauthorized = 401 , Http::scPaymentRequired = 402 , Http::scForbidden = 403 ,
  Http::scNotFound = 404 , Http::scMethodNotAllowed = 405 , Http::scNotAcceptable = 406 , Http::scProxyAuthenticationRequired = 407 ,
  Http::scRequestTimeout = 408 , Http::scConflict = 409 , Http::scGone = 410 , Http::scLengthRequired = 411 ,
  Http::scPreconditionFailed = 412 , Http::scContentTooLarge = 413 , Http::scUriTooLong = 414 , Http::scUnsupportedMediaType = 415 ,
  Http::scRequestedRangeNotSatisfied = 416 , Http::scExpectationFailed = 417 , Http::scMisdirectedRequest = 421 , Http::scUnprocessableEntity = 422 ,
  Http::scLocked = 423 , Http::scFailedDependency = 424 , Http::scTooEarly = 425 , Http::scUpgradeRequired = 426 ,
  Http::scPreconditionRequired = 428 , Http::scTooManyRequests = 429 , Http::scRequestHeaderFieldsTooLarge = 431 , Http::scUnavailableForLegalReasons = 451 ,
  Http::scInternalServerError = 500 , Http::scNotImplemented = 501 , Http::scBadGateway = 502 , Http::scServiceUnavailable = 503 ,
  Http::scGatewayTimeout = 504 , Http::scHttpVersionNotSupported = 505 , Http::scVariantAlsoNegotiates = 506 , Http::scInsufficientStorage = 507 ,
  Http::scLoopDetected = 508 , Http::scNotExtended = 510 , Http::scNetworkAuthenticationRequired = 511 , Http::scInvalidHeader = 600 ,
  Http::scHeaderTooLarge = 601
}
 

Functions

const char * Http::StatusCodeString (const Http::StatusCode status)
 
bool Http::Is1xx (const int sc)
 whether this is an informational 1xx response status code
 
bool Http::Is4xx (const int sc)
 whether this is a client error 4xx response status code
 
bool Http::ProhibitsContentLength (const StatusCode sc)
 whether this response status code prohibits sending Content-Length
 
bool Http::IsReforwardableStatus (StatusCode)
 whether to send the request to another peer based on the current response status code