Since the HttpServer class allows either GET or POST and returns 501 (not
implemented) for others, programs using it may wish to further limit
processing to GET requests only.
case BAD_REQUEST: out<<"Bad Request"; break;
case FORBIDDEN: out<<"Forbidden"; break;
case NOT_FOUND: out<<"Not Found"; break;
+ case METHOD_NOT_ALLOWED: out<<"Method not allowed"; break;
case INTERNAL_ERROR: out<<"Internal Error"; break;
case NOT_IMPLEMENTED: out<<"Not Implemented"; break;
default: out<<"Unknown Status"; break;
BAD_REQUEST = 400,
FORBIDDEN = 403,
NOT_FOUND = 404,
+ METHOD_NOT_ALLOWED = 405,
INTERNAL_ERROR = 500,
NOT_IMPLEMENTED = 501
};