azure-core
Loading...
Searching...
No Matches
http_status_code.hpp
Go to the documentation of this file.
1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT License.
3
9#pragma once
10
11#include <string>
12
13namespace 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,
68 ExpectationFailed = 417,
69 MisdirectedRequest = 421,
71 Locked = 423,
72 FailedDependency = 424,
73 TooEarly = 425,
74 UpgradeRequired = 426,
76 TooManyRequests = 429,
79
80 // === 5xx (server error) Status Codes: ===
82 NotImplemented = 501,
83 BadGateway = 502,
84 ServiceUnavailable = 503,
85 GatewayTimeout = 504,
89 LoopDetected = 508,
90 NotExtended = 510,
92 };
93
94}}} // namespace Azure::Core::Http
HttpStatusCode
Defines the possible HTTP status codes.
Definition http_status_code.hpp:18
@ RequestHeaderFieldsTooLarge
HTTP 431 Request Header Fields Too Large.
@ PayloadTooLarge
HTTP 413 Payload Too Large.
@ MultiStatus
HTTP 207 Multi-Status.
@ UseProxy
HTTP 305 Use Proxy.
@ VariantAlsoNegotiates
HTTP 506 Variant Also Negotiates.
@ BadGateway
HTTP 502 Bad Gateway.
@ TemporaryRedirect
HTTP 307 Temporary Redirect.
@ ServiceUnavailable
HTTP 503 Unavailable.
@ NonAuthoritativeInformation
HTTP 203 Non-Authoritative Information.
@ MovedPermanently
HTTP 301 Moved Permanently.
@ PreconditionFailed
HTTP 412 Precondition Failed.
@ RequestTimeout
HTTP 408 Request Timeout.
@ NotFound
HTTP 404 Not Found.
@ FailedDependency
HTTP 424 Failed Dependency.
@ PaymentRequired
HTTP 402 Payment Required.
@ PreconditionRequired
HTTP 428 Precondition Required.
@ ResetContent
HTTP 205 Rest Content.
@ NetworkAuthenticationRequired
HTTP 511 Network Authentication Required.
@ SwitchingProtocols
HTTP 101 Switching Protocols.
@ HttpVersionNotSupported
HTTP 505 HTTP Version Not Supported.
@ ProxyAuthenticationRequired
HTTP 407 Proxy Authentication Required.
@ Processing
HTTP 102 Processing.
@ None
No HTTP status code.
@ ExpectationFailed
HTTP 417 Expectation Failed.
@ Forbidden
HTTP 403 Forbidden.
@ PartialContent
HTTP 206 Partial Content.
@ SeeOther
HTTP 303 See Other.
@ EarlyHints
HTTP 103 Early Hints.
@ LengthRequired
HTTP 411 Length Required.
@ MethodNotAllowed
HTTP 405 Method Not Allowed.
@ NotExtended
HTTP 510 Not Extended.
@ RangeNotSatisfiable
HTTP 416 Range Not Satisfiable.
@ NotImplemented
HTTP 501 Not Implemented.
@ BadRequest
HTTP 400 Bad Request.
@ LoopDetected
HTTP 508 Loop Detected.
@ UnsupportedMediaType
HTTP 415 Unsupported Media Type.
@ MultipleChoices
HTTP 300 Multiple Choices.
@ TooManyRequests
HTTP 429 Too Many Requests.
@ UnprocessableEntity
HTTP 422 Unprocessable Entity.
@ MisdirectedRequest
HTTP 421 Misdirected Request.
@ PermanentRedirect
HTTP 308 Permanent Redirect.
@ NotModified
HTTP 304 Not Modified.
@ AlreadyReported
HTTP 208 Already Reported.
@ NoContent
HTTP 204 No Content.
@ GatewayTimeout
HTTP 504 Gateway Timeout.
@ Unauthorized
HTTP 401 Unauthorized.
@ UpgradeRequired
HTTP 426 Upgrade Required.
@ InsufficientStorage
HTTP 507 Insufficient Storage.
@ InternalServerError
HTTP 500 Internal Server Error.
@ TooEarly
HTTP 425 Too Early.
@ UriTooLong
HTTP 414 URI Too Long.
@ UnavailableForLegalReasons
HTTP 451 Unavailable For Legal Reasons.
@ NotAcceptable
HTTP 406 Not Acceptable.
Compute the hash value for the input binary data, using SHA256, SHA384 and SHA512.
Definition azure_assert.hpp:57