Skip to content

Commit 06a6ac5

Browse files
authored
Merge pull request #550 from deeringc/patch-3
Add all remaining missing HTTP status codes
2 parents 1ab10c9 + 180c72b commit 06a6ac5

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Release/include/cpprest/details/http_constants.dat

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ DAT(NonAuthInfo, 203, _XPLATSTR("Non-Authoritative Information"))
2121
DAT(NoContent, 204, _XPLATSTR("No Content"))
2222
DAT(ResetContent, 205, _XPLATSTR("Reset Content"))
2323
DAT(PartialContent, 206, _XPLATSTR("Partial Content"))
24+
DAT(MultiStatus, 207, _XPLATSTR("Multi-Status"))
25+
DAT(AlreadyReported, 208, _XPLATSTR("Already Reported"))
26+
DAT(IMUsed, 226, _XPLATSTR("IM Used"))
2427
DAT(MultipleChoices, 300, _XPLATSTR("Multiple Choices"))
2528
DAT(MovedPermanently, 301, _XPLATSTR("Moved Permanently"))
2629
DAT(Found, 302, _XPLATSTR("Found"))
@@ -47,13 +50,26 @@ DAT(RequestUriTooLarge, 414, _XPLATSTR("Request Uri Too Large"))
4750
DAT(UnsupportedMediaType, 415, _XPLATSTR("Unsupported Media Type"))
4851
DAT(RangeNotSatisfiable, 416, _XPLATSTR("Requested range not satisfiable"))
4952
DAT(ExpectationFailed, 417, _XPLATSTR("Expectation Failed"))
53+
DAT(MisdirectedRequest, 421, _XPLATSTR("Misdirected Request"))
54+
DAT(UnprocessableEntity, 422, _XPLATSTR(Unprocessable Entity"))
55+
DAT(Locked, 423, _XPLATSTR(Locked"))
56+
DAT(FailedDependency, 424, _XPLATSTR(Failed Dependency"))
57+
DAT(UpgradeRequired, 426, _XPLATSTR(Upgrade Required"))
58+
DAT(PreconditionRequired, 428, _XPLATSTR(Precondition Required"))
5059
DAT(TooManyRequests, 429, _XPLATSTR("Too Many Requests"))
60+
DAT(RequestHeaderFieldsTooLarge, 431, _XPLATSTR("Request Header Fields Too Large"))
61+
DAT(UnavailableForLegalReasons, 451, _XPLATSTR("Unavailable For Legal Reasons"))
5162
DAT(InternalError, 500, _XPLATSTR("Internal Error"))
5263
DAT(NotImplemented, 501, _XPLATSTR("Not Implemented"))
5364
DAT(BadGateway, 502, _XPLATSTR("Bad Gateway"))
5465
DAT(ServiceUnavailable, 503, _XPLATSTR("Service Unavailable"))
5566
DAT(GatewayTimeout, 504, _XPLATSTR("Gateway Time-out"))
5667
DAT(HttpVersionNotSupported, 505, _XPLATSTR("HTTP Version not supported"))
68+
DAT(VariantAlsoNegotiates, 506, _XPLATSTR("Variant Also Negotiates"))
69+
DAT(InsufficientStorage, 507, _XPLATSTR("Insufficient Storage"))
70+
DAT(LoopDetected, 508, _XPLATSTR("Loop Detected"))
71+
DAT(NotExtended, 510, _XPLATSTR("Not Extended"))
72+
DAT(NetworkAuthenticationRequired, 511, _XPLATSTR("Network Authentication Required"))
5773
#endif // _PHRASES
5874

5975
#ifdef _HEADER_NAMES

0 commit comments

Comments
 (0)