azure-core
http_status_code.hpp
Go to the documentation of this file.
1 // Copyright (c) Microsoft Corporation. All rights reserved.
2 // SPDX-License-Identifier: MIT
3 
9 #pragma once
10 
11 #include <string>
12 
13 namespace Azure { namespace Core { namespace Http {
17  enum class HttpStatusCode
18  {
20  None = 0,
21 
22  // === 1xx (information) Status Codes: ===
23  Continue = 100,
24  SwitchingProtocols = 101,
25  Processing = 102,
26  EarlyHints = 103,
27 
28  // === 2xx (successful) Status Codes: ===
29  Ok = 200,
30  Created = 201,
31  Accepted = 202,
33  NoContent = 204,
34  ResetContent = 205,
35  PartialContent = 206,
36  MultiStatus = 207,
37  AlreadyReported = 208,
38  IMUsed = 226,
39 
40  // === 3xx (redirection) Status Codes: ===
41  MultipleChoices = 300,
42  MovedPermanently = 301,
43  Found = 302,
44  SeeOther = 303,
45  NotModified = 304,
46  UseProxy = 305,
47  TemporaryRedirect = 307,
48  PermanentRedirect = 308,
49 
50  // === 4xx (client error) Status Codes: ===
51  BadRequest = 400,
52  Unauthorized = 401,
53  PaymentRequired = 402,
54  Forbidden = 403,
55  NotFound = 404,
56  MethodNotAllowed = 405,
57  NotAcceptable = 406,
59  RequestTimeout = 408,
60  Conflict = 409,
61  Gone = 410,
62  LengthRequired = 411,
63  PreconditionFailed = 412,
64  PayloadTooLarge = 413,
65  UriTooLong = 414,
66  UnsupportedMediaType = 415,
67  RangeNotSatisfiable = 416,
68  ExpectationFailed = 417,
69  MisdirectedRequest = 421,
70  UnprocessableEntity = 422,
71  Locked = 423,
72  FailedDependency = 424,
73  TooEarly = 425,
74  UpgradeRequired = 426,
75  PreconditionRequired = 428,
76  TooManyRequests = 429,
79 
80  // === 5xx (server error) Status Codes: ===
81  InternalServerError = 500,
82  NotImplemented = 501,
83  BadGateway = 502,
84  ServiceUnavailable = 503,
85  GatewayTimeout = 504,
87  VariantAlsoNegotiates = 506,
88  InsufficientStorage = 507,
89  LoopDetected = 508,
90  NotExtended = 510,
92  };
93 
94 }}} // namespace Azure::Core::Http
Azure::Core::Http::HttpStatusCode::FailedDependency
@ FailedDependency
HTTP 424 Failed Dependency.
Azure::Core::Http::HttpStatusCode::NoContent
@ NoContent
HTTP 204 No Content.
Azure::Core::Http::HttpStatusCode::Continue
@ Continue
HTTP 100 Continue.
Azure::Core::Http::HttpStatusCode::AlreadyReported
@ AlreadyReported
HTTP 208 Already Reported.
Azure::Core::Http::HttpStatusCode::SwitchingProtocols
@ SwitchingProtocols
HTTP 101 Switching Protocols.
Azure::Core::Http::HttpStatusCode::MovedPermanently
@ MovedPermanently
HTTP 301 Moved Permanently.
Azure::Core::Http::HttpStatusCode::Processing
@ Processing
HTTP 102 Processing.
Azure::Core::Http::HttpStatusCode::LoopDetected
@ LoopDetected
HTTP 508 Loop Detected.
Azure::Core::Http::HttpStatusCode::PreconditionRequired
@ PreconditionRequired
HTTP 428 Precondition Required.
Azure::Core::Http::HttpStatusCode::NotModified
@ NotModified
HTTP 304 Not Modified.
Azure::Core::Http::HttpStatusCode::RequestHeaderFieldsTooLarge
@ RequestHeaderFieldsTooLarge
HTTP 431 Request Header Fields Too Large.
Azure::Core::Http::HttpStatusCode::Unauthorized
@ Unauthorized
HTTP 401 Unauthorized.
Azure::Core::Http::HttpStatusCode::UriTooLong
@ UriTooLong
HTTP 414 URI Too Long.
Azure::Core::Http::HttpStatusCode::NotExtended
@ NotExtended
HTTP 510 Not Extended.
Azure::Core::Http::HttpStatusCode::UnsupportedMediaType
@ UnsupportedMediaType
HTTP 415 Unsupported Media Type.
Azure::Core::Http::HttpStatusCode::EarlyHints
@ EarlyHints
HTTP 103 Early Hints.
Azure::Core::Http::HttpStatusCode::NotFound
@ NotFound
HTTP 404 Not Found.
Azure::Core::Http::HttpStatusCode::Accepted
@ Accepted
HTTP 202 Accepted.
Azure::Core::Http::HttpStatusCode::RequestTimeout
@ RequestTimeout
HTTP 408 Request Timeout.
Azure::Core::Http::HttpStatusCode::Forbidden
@ Forbidden
HTTP 403 Forbidden.
Azure::Core::Http::HttpStatusCode::LengthRequired
@ LengthRequired
HTTP 411 Length Required.
Azure::Core::Http::HttpStatusCode::GatewayTimeout
@ GatewayTimeout
HTTP 504 Gateway Timeout.
Azure::Core::Http::HttpStatusCode::TooManyRequests
@ TooManyRequests
HTTP 429 Too Many Requests.
Azure::Core::Http::HttpStatusCode::VariantAlsoNegotiates
@ VariantAlsoNegotiates
HTTP 506 Variant Also Negotiates.
Azure::Core::Http::HttpStatusCode::NotAcceptable
@ NotAcceptable
HTTP 406 Not Acceptable.
Azure::Core::Http::HttpStatusCode::BadGateway
@ BadGateway
HTTP 502 Bad Gateway.
Azure::Core::Http::HttpStatusCode::NetworkAuthenticationRequired
@ NetworkAuthenticationRequired
HTTP 511 Network Authentication Required.
Azure::Core::Http::HttpStatusCode::Gone
@ Gone
HTTP 410 Gone.
Azure::Core::Http::HttpStatusCode::PermanentRedirect
@ PermanentRedirect
HTTP 308 Permanent Redirect.
Azure::Core::Http::HttpStatusCode::TemporaryRedirect
@ TemporaryRedirect
HTTP 307 Temporary Redirect.
Azure::Core::Http::HttpStatusCode::UnavailableForLegalReasons
@ UnavailableForLegalReasons
HTTP 451 Unavailable For Legal Reasons.
Azure::Core::Http::HttpStatusCode::RangeNotSatisfiable
@ RangeNotSatisfiable
HTTP 416 Range Not Satisfiable.
Azure::Core::Http::HttpStatusCode::IMUsed
@ IMUsed
HTTP 226 IM Used.
Azure::Core::Http::HttpStatusCode::ResetContent
@ ResetContent
HTTP 205 Rest Content.
Azure
Azure SDK abstractions.
Definition: azure_assert.hpp:55
Azure::Core::Http::HttpStatusCode::SeeOther
@ SeeOther
HTTP 303 See Other.
Azure::Core::Http::HttpStatusCode::Created
@ Created
HTTP 201 Created.
Azure::Core::Http::HttpStatusCode::BadRequest
@ BadRequest
HTTP 400 Bad Request.
Azure::Core::Http::HttpStatusCode::None
@ None
No HTTP status code.
Azure::Core::Http::HttpStatusCode::UnprocessableEntity
@ UnprocessableEntity
HTTP 422 Unprocessable Entity.
Azure::Core::Http::HttpStatusCode::NonAuthoritativeInformation
@ NonAuthoritativeInformation
HTTP 203 Non-Authoritative Information.
Azure::Core::Http::HttpStatusCode::ExpectationFailed
@ ExpectationFailed
HTTP 417 Expectation Failed.
Azure::Core::Http::HttpStatusCode::ServiceUnavailable
@ ServiceUnavailable
HTTP 503 Unavailable.
Azure::Core::Http::HttpStatusCode::InsufficientStorage
@ InsufficientStorage
HTTP 507 Insufficient Storage.
Azure::Core::Http::HttpStatusCode::UpgradeRequired
@ UpgradeRequired
HTTP 426 Upgrade Required.
Azure::Core::Http::HttpStatusCode::MethodNotAllowed
@ MethodNotAllowed
HTTP 405 Method Not Allowed.
Azure::Core::Http::HttpStatusCode::PartialContent
@ PartialContent
HTTP 206 Partial Content.
Azure::Core::Http::HttpStatusCode::Conflict
@ Conflict
HTTP 409 Conflict.
Azure::Core::Http::HttpStatusCode::Locked
@ Locked
HTTP 423 Locked.
Azure::Core::Http::HttpStatusCode::MultipleChoices
@ MultipleChoices
HTTP 300 Multiple Choices.
Azure::Core::Http::HttpStatusCode::PayloadTooLarge
@ PayloadTooLarge
HTTP 413 Payload Too Large.
Azure::Core::Http::HttpStatusCode::Ok
@ Ok
HTTP 200 OK.
Azure::Core::Http::HttpStatusCode::InternalServerError
@ InternalServerError
HTTP 500 Internal Server Error.
Azure::Core::Http::HttpStatusCode::ProxyAuthenticationRequired
@ ProxyAuthenticationRequired
HTTP 407 Proxy Authentication Required.
Azure::Core::Http::HttpStatusCode::NotImplemented
@ NotImplemented
HTTP 501 Not Implemented.
Azure::Core::Http::HttpStatusCode::UseProxy
@ UseProxy
HTTP 305 Use Proxy.
Azure::Core::Http::HttpStatusCode
HttpStatusCode
Defines the possible HTTP status codes.
Definition: http_status_code.hpp:18
Azure::Core::Http::HttpStatusCode::Found
@ Found
HTTP 302 Found.
Azure::Core::Http::HttpStatusCode::TooEarly
@ TooEarly
HTTP 425 Too Early.
Azure::Core::Http::HttpStatusCode::HttpVersionNotSupported
@ HttpVersionNotSupported
HTTP 505 HTTP Version Not Supported.
Azure::Core::Http::HttpStatusCode::MisdirectedRequest
@ MisdirectedRequest
HTTP 421 Misdirected Request.
Azure::Core::Http::HttpStatusCode::MultiStatus
@ MultiStatus
HTTP 207 Multi-Status.
Azure::Core::Http::HttpStatusCode::PreconditionFailed
@ PreconditionFailed
HTTP 412 Precondition Failed.
Azure::Core::Http::HttpStatusCode::PaymentRequired
@ PaymentRequired
HTTP 402 Payment Required.