src: Add 451 status code
https://datatracker.ietf.org/doc/draft-ietf-httpbis-legally-restricted-status/
This commit is contained in:
parent
feae76fbc0
commit
2d2188e77b
|
@ -113,6 +113,8 @@ std::string get_status_string(unsigned int status_code) {
|
||||||
return "429 Too Many Requests";
|
return "429 Too Many Requests";
|
||||||
case 431:
|
case 431:
|
||||||
return "431 Request Header Fields Too Large";
|
return "431 Request Header Fields Too Large";
|
||||||
|
case 451:
|
||||||
|
return "451 Unavailable For Legal Reasons";
|
||||||
case 500:
|
case 500:
|
||||||
return "500 Internal Server Error";
|
return "500 Internal Server Error";
|
||||||
case 501:
|
case 501:
|
||||||
|
@ -215,6 +217,8 @@ const char *stringify_status(unsigned int status_code) {
|
||||||
return "429";
|
return "429";
|
||||||
case 431:
|
case 431:
|
||||||
return "431";
|
return "431";
|
||||||
|
case 451:
|
||||||
|
return "451";
|
||||||
case 500:
|
case 500:
|
||||||
return "500";
|
return "500";
|
||||||
case 501:
|
case 501:
|
||||||
|
|
Loading…
Reference in New Issue