|
Webserv
|
#include <string>Go to the source code of this file.
Namespaces | |
| namespace | http |
Enumerations | |
| enum | http::HttpStatus { http::UNKNOWN_STATUS = 0 , http::OK = 200 , http::CREATED = 201 , http::ACCEPTED = 202 , http::NO_CONTENT = 204 , http::MOVED_PERMANENTLY = 301 , http::FOUND = 302 , http::SEE_OTHER = 303 , http::NOT_MODIFIED = 304 , http::TEMPORARY_REDIRECT = 307 , http::PERMANENT_REDIRECT = 308 , http::BAD_REQUEST = 400 , http::UNAUTHORIZED = 401 , http::FORBIDDEN = 403 , http::NOT_FOUND = 404 , http::METHOD_NOT_ALLOWED = 405 , http::CONFLICT = 409 , http::LENGTH_REQUIRED = 411 , http::PAYLOAD_TOO_LARGE = 413 , http::UNSUPPORTED_MEDIA_TYPE = 415 , http::INTERNAL_SERVER_ERROR = 500 , http::NOT_IMPLEMENTED = 501 , http::BAD_GATEWAY = 502 } |
Functions | |
| HttpStatus | http::toHttpStatus (int) |
| HttpStatus | http::toHttpStatus (const std::string &codeStr) |
| const char * | http::getReasonPhrase (HttpStatus status) |