aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/http/misc/httpcodes.cpp
diff options
context:
space:
mode:
authortobo <tobo@yandex-team.ru>2022-02-10 16:47:27 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:27 +0300
commit55a7f90e4cd31e9481cace8ee5dfd682c27e810e (patch)
tree9814fbd1c3effac9b8377c5d604b367b14e2db55 /library/cpp/http/misc/httpcodes.cpp
parent7fe839092527589b38f014d854c51565b3c1adfa (diff)
downloadydb-55a7f90e4cd31e9481cace8ee5dfd682c27e810e.tar.gz
Restoring authorship annotation for <tobo@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/http/misc/httpcodes.cpp')
-rw-r--r--library/cpp/http/misc/httpcodes.cpp130
1 files changed, 65 insertions, 65 deletions
diff --git a/library/cpp/http/misc/httpcodes.cpp b/library/cpp/http/misc/httpcodes.cpp
index 2514be1fa3..ad8c80ac1e 100644
--- a/library/cpp/http/misc/httpcodes.cpp
+++ b/library/cpp/http/misc/httpcodes.cpp
@@ -3,139 +3,139 @@
TStringBuf HttpCodeStrEx(int code) noexcept {
switch (code) {
case HTTP_CONTINUE:
- return TStringBuf("100 Continue");
+ return TStringBuf("100 Continue");
case HTTP_SWITCHING_PROTOCOLS:
- return TStringBuf("101 Switching protocols");
+ return TStringBuf("101 Switching protocols");
case HTTP_PROCESSING:
- return TStringBuf("102 Processing");
+ return TStringBuf("102 Processing");
case HTTP_OK:
- return TStringBuf("200 Ok");
+ return TStringBuf("200 Ok");
case HTTP_CREATED:
- return TStringBuf("201 Created");
+ return TStringBuf("201 Created");
case HTTP_ACCEPTED:
- return TStringBuf("202 Accepted");
+ return TStringBuf("202 Accepted");
case HTTP_NON_AUTHORITATIVE_INFORMATION:
- return TStringBuf("203 None authoritative information");
+ return TStringBuf("203 None authoritative information");
case HTTP_NO_CONTENT:
- return TStringBuf("204 No content");
+ return TStringBuf("204 No content");
case HTTP_RESET_CONTENT:
- return TStringBuf("205 Reset content");
+ return TStringBuf("205 Reset content");
case HTTP_PARTIAL_CONTENT:
- return TStringBuf("206 Partial content");
+ return TStringBuf("206 Partial content");
case HTTP_MULTI_STATUS:
- return TStringBuf("207 Multi status");
+ return TStringBuf("207 Multi status");
case HTTP_ALREADY_REPORTED:
- return TStringBuf("208 Already reported");
+ return TStringBuf("208 Already reported");
case HTTP_IM_USED:
- return TStringBuf("226 IM used");
+ return TStringBuf("226 IM used");
case HTTP_MULTIPLE_CHOICES:
- return TStringBuf("300 Multiple choices");
+ return TStringBuf("300 Multiple choices");
case HTTP_MOVED_PERMANENTLY:
- return TStringBuf("301 Moved permanently");
+ return TStringBuf("301 Moved permanently");
case HTTP_FOUND:
- return TStringBuf("302 Moved temporarily");
+ return TStringBuf("302 Moved temporarily");
case HTTP_SEE_OTHER:
- return TStringBuf("303 See other");
+ return TStringBuf("303 See other");
case HTTP_NOT_MODIFIED:
- return TStringBuf("304 Not modified");
+ return TStringBuf("304 Not modified");
case HTTP_USE_PROXY:
- return TStringBuf("305 Use proxy");
+ return TStringBuf("305 Use proxy");
case HTTP_TEMPORARY_REDIRECT:
- return TStringBuf("307 Temporarily redirect");
+ return TStringBuf("307 Temporarily redirect");
case HTTP_PERMANENT_REDIRECT:
- return TStringBuf("308 Permanent redirect");
+ return TStringBuf("308 Permanent redirect");
case HTTP_BAD_REQUEST:
- return TStringBuf("400 Bad request");
+ return TStringBuf("400 Bad request");
case HTTP_UNAUTHORIZED:
- return TStringBuf("401 Unauthorized");
+ return TStringBuf("401 Unauthorized");
case HTTP_PAYMENT_REQUIRED:
- return TStringBuf("402 Payment required");
+ return TStringBuf("402 Payment required");
case HTTP_FORBIDDEN:
- return TStringBuf("403 Forbidden");
+ return TStringBuf("403 Forbidden");
case HTTP_NOT_FOUND:
- return TStringBuf("404 Not found");
+ return TStringBuf("404 Not found");
case HTTP_METHOD_NOT_ALLOWED:
- return TStringBuf("405 Method not allowed");
+ return TStringBuf("405 Method not allowed");
case HTTP_NOT_ACCEPTABLE:
- return TStringBuf("406 Not acceptable");
+ return TStringBuf("406 Not acceptable");
case HTTP_PROXY_AUTHENTICATION_REQUIRED:
- return TStringBuf("407 Proxy Authentication required");
+ return TStringBuf("407 Proxy Authentication required");
case HTTP_REQUEST_TIME_OUT:
- return TStringBuf("408 Request time out");
+ return TStringBuf("408 Request time out");
case HTTP_CONFLICT:
- return TStringBuf("409 Conflict");
+ return TStringBuf("409 Conflict");
case HTTP_GONE:
- return TStringBuf("410 Gone");
+ return TStringBuf("410 Gone");
case HTTP_LENGTH_REQUIRED:
- return TStringBuf("411 Length required");
+ return TStringBuf("411 Length required");
case HTTP_PRECONDITION_FAILED:
- return TStringBuf("412 Precondition failed");
+ return TStringBuf("412 Precondition failed");
case HTTP_REQUEST_ENTITY_TOO_LARGE:
- return TStringBuf("413 Request entity too large");
+ return TStringBuf("413 Request entity too large");
case HTTP_REQUEST_URI_TOO_LARGE:
- return TStringBuf("414 Request uri too large");
+ return TStringBuf("414 Request uri too large");
case HTTP_UNSUPPORTED_MEDIA_TYPE:
- return TStringBuf("415 Unsupported media type");
+ return TStringBuf("415 Unsupported media type");
case HTTP_REQUESTED_RANGE_NOT_SATISFIABLE:
- return TStringBuf("416 Requested Range Not Satisfiable");
+ return TStringBuf("416 Requested Range Not Satisfiable");
case HTTP_EXPECTATION_FAILED:
- return TStringBuf("417 Expectation Failed");
+ return TStringBuf("417 Expectation Failed");
case HTTP_I_AM_A_TEAPOT:
- return TStringBuf("418 I Am A Teapot");
+ return TStringBuf("418 I Am A Teapot");
case HTTP_AUTHENTICATION_TIMEOUT:
- return TStringBuf("419 Authentication Timeout");
+ return TStringBuf("419 Authentication Timeout");
case HTTP_MISDIRECTED_REQUEST:
- return TStringBuf("421 Misdirected Request");
+ return TStringBuf("421 Misdirected Request");
case HTTP_UNPROCESSABLE_ENTITY:
- return TStringBuf("422 Unprocessable Entity");
+ return TStringBuf("422 Unprocessable Entity");
case HTTP_LOCKED:
- return TStringBuf("423 Locked");
+ return TStringBuf("423 Locked");
case HTTP_FAILED_DEPENDENCY:
- return TStringBuf("424 Failed Dependency");
+ return TStringBuf("424 Failed Dependency");
case HTTP_UNORDERED_COLLECTION:
- return TStringBuf("425 Unordered Collection");
+ return TStringBuf("425 Unordered Collection");
case HTTP_UPGRADE_REQUIRED:
- return TStringBuf("426 Upgrade Required");
+ return TStringBuf("426 Upgrade Required");
case HTTP_PRECONDITION_REQUIRED:
- return TStringBuf("428 Precondition Required");
+ return TStringBuf("428 Precondition Required");
case HTTP_TOO_MANY_REQUESTS:
- return TStringBuf("429 Too Many Requests");
+ return TStringBuf("429 Too Many Requests");
case HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE:
- return TStringBuf("431 Request Header Fields Too Large");
+ return TStringBuf("431 Request Header Fields Too Large");
case HTTP_UNAVAILABLE_FOR_LEGAL_REASONS:
- return TStringBuf("451 Unavailable For Legal Reason");
+ return TStringBuf("451 Unavailable For Legal Reason");
case HTTP_INTERNAL_SERVER_ERROR:
- return TStringBuf("500 Internal server error");
+ return TStringBuf("500 Internal server error");
case HTTP_NOT_IMPLEMENTED:
- return TStringBuf("501 Not implemented");
+ return TStringBuf("501 Not implemented");
case HTTP_BAD_GATEWAY:
- return TStringBuf("502 Bad gateway");
+ return TStringBuf("502 Bad gateway");
case HTTP_SERVICE_UNAVAILABLE:
- return TStringBuf("503 Service unavailable");
+ return TStringBuf("503 Service unavailable");
case HTTP_GATEWAY_TIME_OUT:
- return TStringBuf("504 Gateway time out");
+ return TStringBuf("504 Gateway time out");
case HTTP_HTTP_VERSION_NOT_SUPPORTED:
- return TStringBuf("505 HTTP version not supported");
+ return TStringBuf("505 HTTP version not supported");
case HTTP_VARIANT_ALSO_NEGOTIATES:
- return TStringBuf("506 Variant also negotiates");
+ return TStringBuf("506 Variant also negotiates");
case HTTP_INSUFFICIENT_STORAGE:
- return TStringBuf("507 Insufficient storage");
+ return TStringBuf("507 Insufficient storage");
case HTTP_LOOP_DETECTED:
- return TStringBuf("508 Loop Detected");
+ return TStringBuf("508 Loop Detected");
case HTTP_BANDWIDTH_LIMIT_EXCEEDED:
- return TStringBuf("509 Bandwidth Limit Exceeded");
+ return TStringBuf("509 Bandwidth Limit Exceeded");
case HTTP_NOT_EXTENDED:
- return TStringBuf("510 Not Extended");
+ return TStringBuf("510 Not Extended");
case HTTP_NETWORK_AUTHENTICATION_REQUIRED:
- return TStringBuf("511 Network Authentication Required");
+ return TStringBuf("511 Network Authentication Required");
case HTTP_UNASSIGNED_512:
- return TStringBuf("512 Unassigned");
+ return TStringBuf("512 Unassigned");
default:
- return TStringBuf("000 Unknown HTTP code");
+ return TStringBuf("000 Unknown HTTP code");
}
}