31 #define NULL ((void*) 0)
40 "Switching Protocols",
49 "Non-Authoritative Information",
95 "Proxy Authentication Required",
100 "Precondition Failed",
103 "Unsupported Media Type",
104 "Range Not Satisfiable",
105 "Expectation Failed",
109 "Misdirected Request",
110 "Unprocessable Entity",
116 "Precondition Required",
119 "Request Header Fields Too Large",
138 "Blocked by Windows Parental Controls",
139 "Unavailable For Legal Reasons"
143 "Internal Server Error",
146 "Service Unavailable",
148 "HTTP Version Not Supported",
149 "Variant Also Negotiates",
150 "Insufficient Storage",
152 "Bandwidth Limit Exceeded",
154 "Network Authentication Required"
158 struct MHD_Reason_Block
161 const char *
const*
data;
164 #define BLOCK(m) { (sizeof(m) / sizeof(char*)), m }
166 static const struct MHD_Reason_Block
reasons[] = {
179 if ( (code >= 100) &&
181 (
reasons[code / 100].max > (code % 100)) )
182 return reasons[code / 100].data[code % 100];
const char * MHD_get_reason_phrase_for(enum MHD_HTTP_StatusCode code)
static const struct MHD_Reason_Block reasons[]
static const char *const two_hundred[]
static const char *const five_hundred[]
static const char *const invalid_hundred[]
static const char *const three_hundred[]
static const char *const four_hundred[]
static const char *const one_hundred[]
public interface to libmicrohttpd