CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
http_status_code.h
1
2#pragma once
3#include <system/enum.h>
4
5namespace System { namespace Net {
6
7// HTTP status codes as per RFC 2616.
8enum class HttpStatusCode
9{
11 Continue = 100,
15 OK = 200,
17 Created = 201,
19 Accepted = 202,
23 NoContent = 204,
25 ResetContent = 205,
27 PartialContent = 206,
29 MultipleChoices = 300,
31 Ambiguous = 300,
33 MovedPermanently = 301,
35 Moved = 301,
37 Found = 302,
39 Redirect = 302,
41 SeeOther = 303,
43 RedirectMethod = 303,
45 NotModified = 304,
47 UseProxy = 305,
49 Unused = 306,
53 RedirectKeepVerb = 307,
57 BadRequest = 400,
59 Unauthorized = 401,
61 PaymentRequired = 402,
63 Forbidden = 403,
65 NotFound = 404,
67 MethodNotAllowed = 405,
69 NotAcceptable = 406,
73 RequestTimeout = 408,
75 Conflict = 409,
77 Gone = 410,
79 LengthRequired = 411,
93 UpgradeRequired = 426,
97 NotImplemented = 501,
99 BadGateway = 502,
101 ServiceUnavailable = 503,
103 GatewayTimeout = 504,
106};
107
108}} // namespace System::Net
109
111template <>
112struct EnumMetaInfo<System::Net::HttpStatusCode>
113{
116 static ASPOSECPP_SHARED_API const std::array<std::pair<System::Net::HttpStatusCode, const char_t*>, 47>& values();
117};
HttpStatusCode
Definition: http_status_code.h:9
@ Ambiguous
The 'Ambiguous' status code that equals to HTTP status 300.
@ RequestUriTooLong
The 'Request-URI Too Long' status code that equals to HTTP status 414.
@ UseProxy
The 'Use Proxy' status code that equals to HTTP status 305.
@ Gone
The 'Gone' status code that equals to HTTP status 410.
@ BadGateway
The 'Bad Gateway' status code that equals to HTTP status 502.
@ Created
The 'Created' status code that equals to HTTP status 201.
@ TemporaryRedirect
The 'Temporary Redirect' status code that equals to HTTP status 307.
@ RequestEntityTooLarge
The 'Request Entity Too Large' status code that equals to HTTP status 413.
@ ServiceUnavailable
The 'Service Unavailable' status code that equals to HTTP status 503.
@ NonAuthoritativeInformation
The 'Non-Authoritative Information' status code that equals to HTTP status 203.
@ MovedPermanently
The 'Moved Permanently' status code that equals to HTTP status 301.
@ PreconditionFailed
The 'Precondition Failed' status code that equals to HTTP status 412.
@ RequestTimeout
The 'Request Timeout' status code that equals to HTTP status 408.
@ Accepted
The 'Accepted' status code that equals to HTTP status 202.
@ NotFound
The 'Not Found' status code that equals to HTTP status 404.
@ RedirectMethod
The 'Redirect' status code that equals to HTTP status 303.
@ Redirect
The 'Redirect' status code that equals to HTTP status 302.
@ PaymentRequired
The 'Payment Required' status code that equals to HTTP status 402.
@ ResetContent
The 'Reset Content' status code that equals to HTTP status 205.
@ SwitchingProtocols
The 'Switching Protocol' status code that equals to HTTP status 101.
@ RedirectKeepVerb
The 'Redirect Keep Verb' status code that equals to HTTP status 307.
@ HttpVersionNotSupported
The 'HTTP Version Not Supported' status code that equals to HTTP status 505.
@ ProxyAuthenticationRequired
The 'Proxy Authentication Required' status code that equals to HTTP status 407.
@ Found
The 'Found' status code that equals to HTTP status 302.
@ ExpectationFailed
The 'Expectation Failed' status code that equals to HTTP status 417.
@ Forbidden
The 'Forbidden' status code that equals to HTTP status 403.
@ PartialContent
The 'Partial Content' status code that equals to HTTP status 206.
@ RequestedRangeNotSatisfiable
The 'Requested Range Not Satisfiable' status code that equals to HTTP status 416.
@ SeeOther
The 'See Other' status code that equals to HTTP status 303.
@ LengthRequired
The 'Length Required' status code that equals to HTTP status 411.
@ MethodNotAllowed
The 'Method Not Allowed' status code that equals to HTTP status 405.
@ Unused
The 'Switch Proxy' status code that equals to HTTP status 306.
@ Moved
The 'Moved' status code that equals to HTTP status 301.
@ NotImplemented
The 'Not Implemented' status code that equals to HTTP status 501.
@ BadRequest
The 'Bad Request' status code that equals to HTTP status 400.
@ Continue
The 'Continue' status code that equals to HTTP status 100.
@ UnsupportedMediaType
The 'Unsupported Media Type' status code that equals to HTTP status 415.
@ MultipleChoices
The 'Multiple Choice' status code that equals to HTTP status 300.
@ PermanentRedirect
The 'Permanent Redirect' status code that equals to HTTP status 308.
@ NotModified
The 'Not Modified' status code that equals to HTTP status 304.
@ NoContent
The 'No Content' status code that equals to HTTP status 204.
@ GatewayTimeout
The 'Gateway Timeout' status code that equals to HTTP status 504.
@ Unauthorized
The 'Unauthorized' status code that equals to HTTP status 401.
@ OK
The 'OK' status code that equals to HTTP status 200.
@ UpgradeRequired
The 'Upgrade Required' status code that equals to HTTP status 426.
@ InternalServerError
The 'Internal Server Error' status code that equals to HTTP status 500.
@ Conflict
The 'Conflict' status code that equals to HTTP status 409.
@ NotAcceptable
The 'Not Acceptable' status code that equals to HTTP status 406.
Definition: db_command.h:9