23 #include "HTTPResponseStatus.h"
30 HTTPResponseStatus HTTPResponseStatus::NonAuthInfo(203,
"Non-authoritative information");
40 HTTPResponseStatus HTTPResponseStatus::Unauthorized(401,
"Unauthorized\r\nWWW-Authenticate: Invalid authentication details");
43 HTTPResponseStatus HTTPResponseStatus::InvalidMethod(405,
"HTTP verb used to access this page is not allowed (method not allowed)");
44 HTTPResponseStatus HTTPResponseStatus::InvalidMime(406,
"Client browser does not accept the MIME type of the requested page");
45 HTTPResponseStatus HTTPResponseStatus::ProxyAuthRequired(407,
"Proxy authentication required");
47 HTTPResponseStatus HTTPResponseStatus::ReqEntityLarge(413,
"Request entity too large");
49 HTTPResponseStatus HTTPResponseStatus::UnsupportedMedia(415,
"Unsupported media type");
50 HTTPResponseStatus HTTPResponseStatus::InvalidReqRange(416,
"Requested range not satisfiable");
53 HTTPResponseStatus HTTPResponseStatus::InternalServerError(500,
"Internal server error");
54 HTTPResponseStatus HTTPResponseStatus::InvalidHeaderConf(501,
"Header values specify a configuration that is not implemented");
58 HTTPResponseStatus HTTPResponseStatus::HttpVersionNotSupported(505,
"HTTP version not supported");
60 HTTPResponseStatus::HTTPResponseStatus() {
64 HTTPResponseStatus::HTTPResponseStatus(
int code,
string msg) {
69 HTTPResponseStatus::~HTTPResponseStatus() {
73 int HTTPResponseStatus::getCode()
77 string HTTPResponseStatus::getMsg()