2023-02-09 10:45:25 +00:00
|
|
|
// HTTP "GET" method.
|
|
|
|
export def GET: str = "GET";
|
|
|
|
// HTTP "HEAD" method.
|
|
|
|
export def HEAD: str = "HEAD";
|
|
|
|
// HTTP "POST" method.
|
|
|
|
export def POST: str = "POST";
|
|
|
|
// HTTP "PUT" method.
|
|
|
|
export def PUT: str = "PUT";
|
|
|
|
// HTTP "DELETE" method.
|
|
|
|
export def DELETE: str = "DELETE";
|
|
|
|
|
|
|
|
// HTTP "Continue" response status (100).
|
|
|
|
export def STATUS_CONTINUE: uint = 100;
|
|
|
|
// HTTP "Switching Protocols" response status (101).
|
2023-02-11 10:16:15 +00:00
|
|
|
export def STATUS_SWITCHING_PROTOCOLS: uint = 101;
|
2023-02-09 10:45:25 +00:00
|
|
|
|
2023-02-11 10:16:15 +00:00
|
|
|
// HTTP "OK" response status (200).
|
2023-02-09 10:45:25 +00:00
|
|
|
export def STATUS_OK: uint = 200;
|
|
|
|
// HTTP "Created" response status (201).
|
|
|
|
export def STATUS_CREATED: uint = 201;
|
|
|
|
// HTTP "Accepted" response status (202).
|
|
|
|
export def STATUS_ACCEPTED: uint = 202;
|
|
|
|
// HTTP "Non-authoritative Info" response status (203).
|
2023-02-11 10:16:15 +00:00
|
|
|
export def STATUS_NONAUTHORITATIVE_INFO: uint = 203;
|
2023-02-09 10:45:25 +00:00
|
|
|
// HTTP "No Content" response status (204).
|
2023-02-11 10:16:15 +00:00
|
|
|
export def STATUS_NO_CONTENT: uint = 204;
|
2023-02-09 10:45:25 +00:00
|
|
|
// HTTP "Reset Content" response status (205).
|
2023-02-11 10:16:15 +00:00
|
|
|
export def STATUS_RESET_CONTENT: uint = 205;
|
2023-02-09 10:45:25 +00:00
|
|
|
// HTTP "Partial Content" response status (206).
|
2023-02-11 10:16:15 +00:00
|
|
|
export def STATUS_PARTIAL_CONTENT: uint = 206;
|
2023-02-09 10:45:25 +00:00
|
|
|
|
|
|
|
// HTTP "Multiple Choices" response status (300).
|
2023-02-11 10:16:15 +00:00
|
|
|
export def STATUS_MULTIPLE_CHOICES: uint = 300;
|
2023-02-09 10:45:25 +00:00
|
|
|
// HTTP "Moved Permanently" response status (301).
|
2023-02-11 10:16:15 +00:00
|
|
|
export def STATUS_MOVED_PERMANENTLY: uint = 301;
|
2023-02-09 10:45:25 +00:00
|
|
|
// HTTP "Found" response status (302).
|
|
|
|
export def STATUS_FOUND: uint = 302;
|
|
|
|
// HTTP "See Other" response status (303).
|
2023-02-11 10:16:15 +00:00
|
|
|
export def STATUS_SEE_OTHER: uint = 303;
|
2023-02-09 10:45:25 +00:00
|
|
|
// HTTP "Not Modified" response status (304).
|
2023-02-11 10:16:15 +00:00
|
|
|
export def STATUS_NOT_MODIFIED: uint = 304;
|
2023-02-09 10:45:25 +00:00
|
|
|
// HTTP "Use Proxy" response status (305).
|
2023-02-11 10:16:15 +00:00
|
|
|
export def STATUS_USE_PROXY: uint = 305;
|
2023-02-09 10:45:25 +00:00
|
|
|
|
|
|
|
// HTTP "Temporary Redirect" response status (307).
|
2023-02-11 10:16:15 +00:00
|
|
|
export def STATUS_TEMPORARY_REDIRECT: uint = 307;
|
2023-02-09 10:45:25 +00:00
|
|
|
// HTTP "Permanent Redirect" response status (308).
|
2023-02-11 10:16:15 +00:00
|
|
|
export def STATUS_PERMANENT_REDIRECT: uint = 308;
|
2023-02-09 10:45:25 +00:00
|
|
|
|
|
|
|
// HTTP "Bad Request" response status (400).
|
2023-02-11 10:16:15 +00:00
|
|
|
export def STATUS_BAD_REQUEST: uint = 400;
|
2023-02-09 10:45:25 +00:00
|
|
|
// HTTP "Unauthorized" response status (401).
|
|
|
|
export def STATUS_UNAUTHORIZED: uint = 401;
|
|
|
|
// HTTP "Payment Required" response status (402).
|
2023-02-11 10:16:15 +00:00
|
|
|
export def STATUS_PAYMENT_REQUIRED: uint = 402;
|
2023-02-09 10:45:25 +00:00
|
|
|
// HTTP "Forbidden" response status (403).
|
|
|
|
export def STATUS_FORBIDDEN: uint = 403;
|
|
|
|
// HTTP "Not Found" response status (404).
|
2023-02-11 10:16:15 +00:00
|
|
|
export def STATUS_NOT_FOUND: uint = 404;
|
2023-02-09 10:45:25 +00:00
|
|
|
// HTTP "Method Not Allowed" response status (405).
|
2023-02-11 10:16:15 +00:00
|
|
|
export def STATUS_METHOD_NOT_ALLOWED: uint = 405;
|
2023-02-09 10:45:25 +00:00
|
|
|
// HTTP "Not Acceptable" response status (406).
|
2023-02-11 10:16:15 +00:00
|
|
|
export def STATUS_NOT_ACCEPTABLE: uint = 406;
|
2023-02-09 10:45:25 +00:00
|
|
|
// HTTP "Proxy Authentication Required" response status (407).
|
2023-02-11 10:16:15 +00:00
|
|
|
export def STATUS_PROXY_AUTH_REQUIRED: uint = 407;
|
2023-02-09 10:45:25 +00:00
|
|
|
// HTTP "Request Timeout" response status (408).
|
2023-02-11 10:16:15 +00:00
|
|
|
export def STATUS_REQUEST_TIMEOUT: uint = 408;
|
2023-02-09 10:45:25 +00:00
|
|
|
// HTTP "Conflict" response status (409).
|
|
|
|
export def STATUS_CONFLICT: uint = 409;
|
|
|
|
// HTTP "Gone" response status (410).
|
|
|
|
export def STATUS_GONE: uint = 410;
|
|
|
|
// HTTP "Length Required" response status (411).
|
2023-02-11 10:16:15 +00:00
|
|
|
export def STATUS_LENGTH_REQUIRED: uint = 411;
|
2023-02-09 10:45:25 +00:00
|
|
|
// HTTP "Precondition Failed" response status (412).
|
2023-02-11 10:16:15 +00:00
|
|
|
export def STATUS_PRECONDITION_FAILED: uint = 412;
|
2023-02-09 10:45:25 +00:00
|
|
|
// HTTP "Request Entity Too Large" response status (413).
|
2023-02-11 10:16:15 +00:00
|
|
|
export def STATUS_REQUEST_ENTITY_TOO_LARGE: uint = 413;
|
2023-02-09 10:45:25 +00:00
|
|
|
// HTTP "Request URI Too Long" response status (414).
|
2023-02-11 10:16:15 +00:00
|
|
|
export def STATUS_REQUEST_URI_TOO_LONG: uint = 414;
|
2023-02-09 10:45:25 +00:00
|
|
|
// HTTP "Unsupported Media Type" response status (415).
|
2023-02-11 10:16:15 +00:00
|
|
|
export def STATUS_UNSUPPORTED_MEDIA_TYPE: uint = 415;
|
2023-02-09 10:45:25 +00:00
|
|
|
// HTTP "Requested Range Not Satisfiable" response status (416).
|
2023-02-11 10:16:15 +00:00
|
|
|
export def STATUS_REQUESTED_RANGE_NOT_SATISFIABLE: uint = 416;
|
2023-02-09 10:45:25 +00:00
|
|
|
// HTTP "Expectation Failed" response status (417).
|
2023-02-11 10:16:15 +00:00
|
|
|
export def STATUS_EXPECTATION_FAILED: uint = 417;
|
2023-02-09 10:45:25 +00:00
|
|
|
// HTTP "I'm a Teapot" response status (418).
|
|
|
|
export def STATUS_TEAPOT: uint = 418;
|
|
|
|
// HTTP "Misdirected Request" response status (421).
|
2023-02-11 10:16:15 +00:00
|
|
|
export def STATUS_MISDIRECTED_REQUEST: uint = 421;
|
2023-02-09 10:45:25 +00:00
|
|
|
// HTTP "Unprocessable Entity" response status (422).
|
2023-02-11 10:16:15 +00:00
|
|
|
export def STATUS_UNPROCESSABLE_ENTITY: uint = 422;
|
2023-02-09 10:45:25 +00:00
|
|
|
// HTTP "Upgrade Required" response status (426).
|
2023-02-11 10:16:15 +00:00
|
|
|
export def STATUS_UPGRADE_REQUIRED: uint = 426;
|
2023-02-09 10:45:25 +00:00
|
|
|
|
|
|
|
// HTTP "Internal Server Error" response status (500).
|
2023-02-11 10:16:15 +00:00
|
|
|
export def STATUS_INTERNAL_SERVER_ERROR: uint = 500;
|
2023-02-09 10:45:25 +00:00
|
|
|
// HTTP "Not Implemented" response status (501).
|
2023-02-11 10:16:15 +00:00
|
|
|
export def STATUS_NOT_IMPLEMENTED: uint = 501;
|
2023-02-09 10:45:25 +00:00
|
|
|
// HTTP "Bad Gateway" response status (502).
|
2023-02-11 10:16:15 +00:00
|
|
|
export def STATUS_BAD_GATEWAY: uint = 502;
|
2023-02-09 10:45:25 +00:00
|
|
|
// HTTP "Service Unavailable" response status (503).
|
2023-02-11 10:16:15 +00:00
|
|
|
export def STATUS_SERVICE_UNAVAILABLE: uint = 503;
|
2023-02-09 10:45:25 +00:00
|
|
|
// HTTP "Gateway Timeout" response status (504).
|
2023-02-11 10:16:15 +00:00
|
|
|
export def STATUS_GATEWAY_TIMEOUT: uint = 504;
|
2023-02-09 10:45:25 +00:00
|
|
|
// HTTP "HTTP Version Not Supported" response status (505).
|
2023-02-11 10:16:15 +00:00
|
|
|
export def STATUS_HTTP_VERSION_NOT_SUPPORTED: uint = 505;
|