1
Fork 0
hare-http/net/http/constants.ha

107 lines
4.4 KiB
Hare
Raw Normal View History

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).
export def STATUS_SWITCHINGPROTOCOLS: uint = 101;
// HTTP "Ok" response status (200).
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).
export def STATUS_NONAUTHORITATIVEINFO: uint = 203;
// HTTP "No Content" response status (204).
export def STATUS_NOCONTENT: uint = 204;
// HTTP "Reset Content" response status (205).
export def STATUS_RESETCONTENT: uint = 205;
// HTTP "Partial Content" response status (206).
export def STATUS_PARTIALCONTENT: uint = 206;
// HTTP "Multiple Choices" response status (300).
export def STATUS_MULTIPLECHOICES: uint = 300;
// HTTP "Moved Permanently" response status (301).
export def STATUS_MOVEDPERMANENTLY: uint = 301;
// HTTP "Found" response status (302).
export def STATUS_FOUND: uint = 302;
// HTTP "See Other" response status (303).
export def STATUS_SEEOTHER: uint = 303;
// HTTP "Not Modified" response status (304).
export def STATUS_NOTMODIFIED: uint = 304;
// HTTP "Use Proxy" response status (305).
export def STATUS_USEPROXY: uint = 305;
// HTTP "Temporary Redirect" response status (307).
export def STATUS_TEMPORARYREDIRECT: uint = 307;
// HTTP "Permanent Redirect" response status (308).
export def STATUS_PERMANENTREDIRECT: uint = 308;
// HTTP "Bad Request" response status (400).
export def STATUS_BADREQUEST: uint = 400;
// HTTP "Unauthorized" response status (401).
export def STATUS_UNAUTHORIZED: uint = 401;
// HTTP "Payment Required" response status (402).
export def STATUS_PAYMENTREQUIRED: uint = 402;
// HTTP "Forbidden" response status (403).
export def STATUS_FORBIDDEN: uint = 403;
// HTTP "Not Found" response status (404).
export def STATUS_NOTFOUND: uint = 404;
// HTTP "Method Not Allowed" response status (405).
export def STATUS_METHODNOTALLOWED: uint = 405;
// HTTP "Not Acceptable" response status (406).
export def STATUS_NOTACCEPTABLE: uint = 406;
// HTTP "Proxy Authentication Required" response status (407).
export def STATUS_PROXYAUTHREQUIRED: uint = 407;
// HTTP "Request Timeout" response status (408).
export def STATUS_REQUESTTIMEOUT: uint = 408;
// 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).
export def STATUS_LENGTHREQUIRED: uint = 411;
// HTTP "Precondition Failed" response status (412).
export def STATUS_PRECONDITIONFAILED: uint = 412;
// HTTP "Request Entity Too Large" response status (413).
export def STATUS_REQUESTENTITYTOOLARGE: uint = 413;
// HTTP "Request URI Too Long" response status (414).
export def STATUS_REQUESTURITOOLONG: uint = 414;
// HTTP "Unsupported Media Type" response status (415).
export def STATUS_UNSUPPORTEDMEDIATYPE: uint = 415;
// HTTP "Requested Range Not Satisfiable" response status (416).
export def STATUS_REQUESTEDRANGENOTSATISFIABLE: uint = 416;
// HTTP "Expectation Failed" response status (417).
export def STATUS_EXPECTATIONFAILED: uint = 417;
// HTTP "I'm a Teapot" response status (418).
export def STATUS_TEAPOT: uint = 418;
// HTTP "Misdirected Request" response status (421).
export def STATUS_MISDIRECTEDREQUEST: uint = 421;
// HTTP "Unprocessable Entity" response status (422).
export def STATUS_UNPROCESSABLEENTITY: uint = 422;
// HTTP "Upgrade Required" response status (426).
export def STATUS_UPGRADEREQUIRED: uint = 426;
// HTTP "Internal Server Error" response status (500).
export def STATUS_INTERNALSERVERERROR: uint = 500;
// HTTP "Not Implemented" response status (501).
export def STATUS_NOTIMPLEMENTED: uint = 501;
// HTTP "Bad Gateway" response status (502).
export def STATUS_BADGATEWAY: uint = 502;
// HTTP "Service Unavailable" response status (503).
export def STATUS_SERVICEUNAVAILABLE: uint = 503;
// HTTP "Gateway Timeout" response status (504).
export def STATUS_GATEWAYTIMEOUT: uint = 504;
// HTTP "HTTP Version Not Supported" response status (505).
export def STATUS_HTTPVERSIONNOTSUPPORTED: uint = 505;