#include "TCPSocket.h"
#include "http_parsed_url.h"
#include "http_parser.h"
#include <cstdint>
#include <cstdlib>
#include <errno.h>
#include <map>
#include <string>
Go to the source code of this file.
◆ get_http_status_string()
static const char* get_http_status_string |
( |
uint16_t |
status_code | ) |
|
|
static |
Definition at line 14 of file http_response_builder.h.
15 switch (status_code) {
19 return "Switching Protocols";
29 return "Non-Authoritative Information";
33 return "Reset Content";
35 return "Partial Content";
37 return "Multi-Status";
39 return "Already Reported";
43 return "Multiple Choices";
45 return "Moved Permanently";
51 return "Not Modified";
55 return "Temporary Redirect";
57 return "Permanent Redirect";
61 return "Unauthorized";
63 return "Payment Required";
69 return "Method Not Allowed";
71 return "Not Acceptable";
73 return "Proxy Authentication Required";
75 return "Request Timeout";
81 return "Length Required";
83 return "Precondition Failed";
85 return "Payload Too Large";
87 return "URI Too Long";
89 return "Unsupported Media Type";
91 return "Range Not Satisfiable";
93 return "Expectation Failed";
95 return "Misdirected Request";
97 return "Unprocessable Entity";
101 return "Failed Dependency";
103 return "Upgrade Required";
105 return "Precondition Required";
107 return "Too Many Requests";
109 return "Request Header Fields Too Large";
111 return "Unavailable For Legal Reasons";
113 return "Internal Server Error";
115 return "Not Implemented";
117 return "Bad Gateway";
119 return "Service Unavailable";
121 return "Gateway Timeout";
123 return "HTTP Version Not Supported";
125 return "Variant Also Negotiates";
127 return "Insufficient Storage";
129 return "Loop Detected";
131 return "Not Extended";
133 return "Network Authentication Required";