userver: userver/http/status_code.hpp File Reference
Loading...
Searching...
No Matches
status_code.hpp File Reference

Detailed Description

Go to the source code of this file.

#include <cstdint>
#include <iosfwd>
#include <fmt/format.h>
+ This graph shows which files directly or indirectly include this file:

Classes

struct  fmt::formatter<::http::StatusCode >
 

Namespaces

namespace  http
 HTTP helpers.
 

Enumerations

enum  http::StatusCode : uint16_t {
  kInvalid = 0 ,
  kContinue = 100 ,
  kSwitchingProtocols = 101 ,
  kProcessing = 102 ,
  kEarlyHints = 103 ,
  kOk = 200 ,
  kCreated = 201 ,
  kAccepted = 202 ,
  kNonAuthoritativeInformation = 203 ,
  kNoContent = 204 ,
  kResetContent = 205 ,
  kPartialContent = 206 ,
  kMultiStatus = 207 ,
  kAlreadyReported = 208 ,
  kThisIsFine = 218 ,
  kImUsed = 226 ,
  kMultipleChoices = 300 ,
  kMovedPermanently = 301 ,
  kFound = 302 ,
  kSeeOther = 303 ,
  kNotModified = 304 ,
  kUseProxy = 305 ,
  kSwitchProxy = 306 ,
  kTemporaryRedirect = 307 ,
  kPermanentRedirect = 308 ,
  kBadRequest = 400 ,
  kUnauthorized = 401 ,
  kPaymentRequired = 402 ,
  kForbidden = 403 ,
  kNotFound = 404 ,
  kMethodNotAllowed = 405 ,
  kNotAcceptable = 406 ,
  kProxyAuthenticationRequired = 407 ,
  kRequestTimeout = 408 ,
  kConflict = 409 ,
  kGone = 410 ,
  kLengthRequired = 411 ,
  kPreconditionFailed = 412 ,
  kPayloadTooLarge = 413 ,
  kUriTooLong = 414 ,
  kUnsupportedMediaType = 415 ,
  kRangeNotSatisfiable = 416 ,
  kExpectationFailed = 417 ,
  kImATeapot = 418 ,
  kPageExpired = 419 ,
  kMethodFailure = 420 ,
  kMisdirectedRequest = 421 ,
  kUnprocessableEntity = 422 ,
  kLocked = 423 ,
  kFailedDependency = 424 ,
  kTooEarly = 425 ,
  kUpgradeRequired = 426 ,
  kPreconditionRequired = 428 ,
  kTooManyRequests = 429 ,
  kRequestHeaderFieldsTooLarge = 431 ,
  kNginxNoResponse = 444 ,
  kUnavailableForLegalReasons = 451 ,
  kNginxRequestHeaderTooLarge = 494 ,
  kNginxSSLCertificateError = 495 ,
  kNginxSSLCertificateRequired = 496 ,
  kNginxHTTPRequestSenttoHTTPSPort = 497 ,
  kDeadlineExpired = 498 ,
  kNginxClientClosedRequest = 499 ,
  kInternalServerError = 500 ,
  kNotImplemented = 501 ,
  kBadGateway = 502 ,
  kServiceUnavailable = 503 ,
  kGatewayTimeout = 504 ,
  kHttpVersionNotSupported = 505 ,
  kVariantAlsoNegotiates = 506 ,
  kInsufficientStorage = 507 ,
  kLoopDetected = 508 ,
  kBandwidthLimitExceeded = 509 ,
  kNotExtended = 510 ,
  kNetworkAuthenticationRequired = 511 ,
  kWebServerIsDown = 520 ,
  kConnectionTimedOut = 522 ,
  kOriginIsUnreachable = 523 ,
  kTimeoutOccurred = 524 ,
  kSslHandshakeFailed = 525 ,
  kInvalidSslCertificate = 526 ,
  Invalid = kInvalid ,
  OK = kOk ,
  Created = kCreated ,
  NoContent = kNoContent ,
  BadRequest = kBadRequest ,
  NotFound = kNotFound ,
  Conflict = kConflict ,
  TooManyRequests = kTooManyRequests ,
  InternalServerError = kInternalServerError ,
  kClientClosedRequest = kNginxClientClosedRequest
}
 https://en.wikipedia.org/wiki/List_of_HTTP_status_codes More...
 

Functions

std::string_view http::StatusCodeString (StatusCode status)
 
std::string http::ToString (StatusCode status)
 
std::ostream & http::operator<< (std::ostream &os, StatusCode s)