78 long hundreds, singles;
91 hundreds = http_status / 100;
92 singles = http_status % 100;
94 if ((hundreds == 4 && singles > 31) ||
95 (hundreds != 4 && singles > 15) ||
96 hundreds < 1 || hundreds > 5)
102 return hundreds * 16 + singles;
105 error(0,
"WSP: Unknown status code used internally. Oops.");
long wsp_convert_http_status_to_wsp_status(long http_status)
void error(int err, const char *fmt,...)