friendev EtherDune TCP/IP library
/home/jander/temp/etherdune/HTTPConstants.h
Go to the documentation of this file.
1 // EtherDune HTTP Constants
2 // Author: Javier Peletier <jm@friendev.com>
3 // Summary: All constants used in all HTTP-related classes in EtherDune
4 // Credits: Built from sources across the Internet, Wikipedia, Mozilla.org, etc
5 //
6 // Copyright (c) 2015 All Rights Reserved, http://friendev.com
7 //
8 // This source is subject to the GPLv2 license.
9 // Please see the License.txt file for more information.
10 // All other rights reserved.
11 //
12 // THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
13 // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
14 // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
15 // PARTICULAR PURPOSE.
16 
17 #ifndef _HTTP_CONSTANTS_
18 #define _HTTP_CONSTANTS_
19 #include <ACross.h>
20 
24 
28 
29 
30 static const char CONTENT_TYPE_TEXT_HTML[] PROGMEM = "text/html";
31 static const char CONTENT_TYPE_APPLICATION_JSON[] PROGMEM = "application/json";
32 
34 
38 
39 static const uint8_t HTTP_METHOD_OPTIONS = 44;
40 static const uint8_t HTTP_METHOD_GET = 230;
41 static const uint8_t HTTP_METHOD_HEAD = 26;
42 static const uint8_t HTTP_METHOD_POST = 78;
43 static const uint8_t HTTP_METHOD_PUT = 255;
44 static const uint8_t HTTP_METHOD_DELETE = 191;
45 static const uint8_t HTTP_METHOD_TRACE = 121;
46 static const uint8_t HTTP_METHOD_CONNECT = 24;
47 static const uint8_t HTTP_METHOD_PROPFIND = 114;
48 static const uint8_t HTTP_METHOD_PROPPATCH = 195;
49 static const uint8_t HTTP_METHOD_MKCOL = 128;
50 static const uint8_t HTTP_METHOD_COPY = 67;
51 static const uint8_t HTTP_METHOD_MOVE = 63;
52 static const uint8_t HTTP_METHOD_LOCK = 49;
53 static const uint8_t HTTP_METHOD_UNLOCK = 216;
54 static const uint8_t HTTP_METHOD_VERSION_CONTROL = 146;
55 static const uint8_t HTTP_METHOD_REPORT = 232;
56 static const uint8_t HTTP_METHOD_CHECKOUT = 102;
57 static const uint8_t HTTP_METHOD_CHECKIN = 3;
58 static const uint8_t HTTP_METHOD_UNCHECKOUT = 13;
59 static const uint8_t HTTP_METHOD_MKWORKSPACE = 93;
60 static const uint8_t HTTP_METHOD_UPDATE = 207;
61 static const uint8_t HTTP_METHOD_LABEL = 106;
62 static const uint8_t HTTP_METHOD_MERGE = 122;
63 static const uint8_t HTTP_METHOD_BASELINE_CONTROL = 177;
64 static const uint8_t HTTP_METHOD_MKACTIVITY = 25;
65 static const uint8_t HTTP_METHOD_ORDERPATCH = 0;
66 static const uint8_t HTTP_METHOD_ACL = 214;
67 static const uint8_t HTTP_METHOD_SEARCH = 194;
68 
70 
74 
75 static const uint16_t HTTP_RESPONSE_CONTINUE = 100;
76 static const uint16_t HTTP_RESPONSE_SWITCHING_PROTOCOL = 101;
77 static const uint16_t HTTP_RESPONSE_OK = 200;
78 static const uint16_t HTTP_RESPONSE_CREATED = 201;
79 static const uint16_t HTTP_RESPONSE_ACCEPTED = 202;
80 static const uint16_t HTTP_RESPONSE_NON_AUTHORITATIVE_INFORMATION = 203;
81 static const uint16_t HTTP_RESPONSE_NO_CONTENT = 204;
82 static const uint16_t HTTP_RESPONSE_RESET_CONTENT = 205;
83 static const uint16_t HTTP_RESPONSE_PARTIAL_CONTENT = 206;
84 static const uint16_t HTTP_RESPONSE_MULTIPLE_CHOICE = 300;
85 static const uint16_t HTTP_RESPONSE_MOVED_PERMANENTLY = 301;
86 static const uint16_t HTTP_RESPONSE_FOUND = 302;
87 static const uint16_t HTTP_RESPONSE_SEE_OTHER = 303;
88 static const uint16_t HTTP_RESPONSE_NOT_MODIFIED = 304;
89 static const uint16_t HTTP_RESPONSE_USE_PROXY = 305;
90 static const uint16_t HTTP_RESPONSE_UNUSED = 306;
91 static const uint16_t HTTP_RESPONSE_TEMPORARY_REDIRECT = 307;
92 static const uint16_t HTTP_RESPONSE_PERMANENT_REDIRECT = 308;
93 static const uint16_t HTTP_RESPONSE_BAD_REQUEST = 400;
94 static const uint16_t HTTP_RESPONSE_UNAUTHORIZED = 401;
95 static const uint16_t HTTP_RESPONSE_PAYMENT_REQUIRED = 402;
96 static const uint16_t HTTP_RESPONSE_FORBIDDEN = 403;
97 static const uint16_t HTTP_RESPONSE_NOT_FOUND = 404;
98 static const uint16_t HTTP_RESPONSE_METHOD_NOT_ALLOWED = 405;
99 static const uint16_t HTTP_RESPONSE_NOT_ACCEPTABLE = 406;
100 static const uint16_t HTTP_RESPONSE_PROXY_AUTHENTICATION_REQUIRED = 407;
101 static const uint16_t HTTP_RESPONSE_REQUEST_TIMEOUT = 408;
102 static const uint16_t HTTP_RESPONSE_CONFLICT = 409;
103 static const uint16_t HTTP_RESPONSE_GONE = 410;
104 static const uint16_t HTTP_RESPONSE_LENGTH_REQUIRED = 411;
105 static const uint16_t HTTP_RESPONSE_PRECONDITION_FAILED = 412;
106 static const uint16_t HTTP_RESPONSE_REQUEST_ENTITY_TOO_LARGE = 413;
107 static const uint16_t HTTP_RESPONSE_REQUEST_URI_TOO_LONG = 414;
108 static const uint16_t HTTP_RESPONSE_UNSUPPORTED_MEDIA_TYPE = 415;
110 static const uint16_t HTTP_RESPONSE_EXPECTATION_FAILED = 417;
111 static const uint16_t HTTP_RESPONSE_INTERNAL_SERVER_ERROR = 500;
112 static const uint16_t HTTP_RESPONSE_NOT_IMPLEMENTED = 501;
113 static const uint16_t HTTP_RESPONSE_BAD_GATEWAY = 502;
114 static const uint16_t HTTP_RESPONSE_SERVICE_UNAVAILABLE = 503;
115 static const uint16_t HTTP_RESPONSE_GATEWAY_TIMEOUT = 504;
116 static const uint16_t HTTP_RESPONSE_HTTP_VERSION_NOT_SUPPORTED = 505;
117 
119 
123 
124 static const char HTTP_RESPONSE_CONTINUE_STR[] PROGMEM = "Continue";
125 static const char HTTP_RESPONSE_SWITCHING_PROTOCOL_STR[] PROGMEM = "Switching Protocol";
126 static const char HTTP_RESPONSE_OK_STR[] PROGMEM = "OK";
127 static const char HTTP_RESPONSE_CREATED_STR[] PROGMEM = "Created";
128 static const char HTTP_RESPONSE_ACCEPTED_STR[] PROGMEM = "Accepted";
129 static const char HTTP_RESPONSE_NON_AUTHORITATIVE_INFORMATION_STR[] PROGMEM = "Non-Authoritative Information";
130 static const char HTTP_RESPONSE_NO_CONTENT_STR[] PROGMEM = "No Content";
131 static const char HTTP_RESPONSE_RESET_CONTENT_STR[] PROGMEM = "Reset Content";
132 static const char HTTP_RESPONSE_PARTIAL_CONTENT_STR[] PROGMEM = "Partial Content";
133 static const char HTTP_RESPONSE_MULTIPLE_CHOICE_STR[] PROGMEM = "Multiple Choice";
134 static const char HTTP_RESPONSE_MOVED_PERMANENTLY_STR[] PROGMEM = "Moved Permanently";
135 static const char HTTP_RESPONSE_FOUND_STR[] PROGMEM = "Found";
136 static const char HTTP_RESPONSE_SEE_OTHER_STR[] PROGMEM = "See Other";
137 static const char HTTP_RESPONSE_NOT_MODIFIED_STR[] PROGMEM = "Not Modified";
138 static const char HTTP_RESPONSE_USE_PROXY_STR[] PROGMEM = "Use Proxy";
139 static const char HTTP_RESPONSE_UNUSED_STR[] PROGMEM = "unused";
140 static const char HTTP_RESPONSE_TEMPORARY_REDIRECT_STR[] PROGMEM = "Temporary Redirect";
141 static const char HTTP_RESPONSE_PERMANENT_REDIRECT_STR[] PROGMEM = "Permanent Redirect";
142 static const char HTTP_RESPONSE_BAD_REQUEST_STR[] PROGMEM = "Bad Request";
143 static const char HTTP_RESPONSE_UNAUTHORIZED_STR[] PROGMEM = "Unauthorized";
144 static const char HTTP_RESPONSE_PAYMENT_REQUIRED_STR[] PROGMEM = "Payment Required";
145 static const char HTTP_RESPONSE_FORBIDDEN_STR[] PROGMEM = "Forbidden";
146 static const char HTTP_RESPONSE_NOT_FOUND_STR[] PROGMEM = "Not Found";
147 static const char HTTP_RESPONSE_METHOD_NOT_ALLOWED_STR[] PROGMEM = "Method Not Allowed";
148 static const char HTTP_RESPONSE_NOT_ACCEPTABLE_STR[] PROGMEM = "Not Acceptable";
149 static const char HTTP_RESPONSE_PROXY_AUTHENTICATION_REQUIRED_STR[] PROGMEM = "Proxy Authentication Required";
150 static const char HTTP_RESPONSE_REQUEST_TIMEOUT_STR[] PROGMEM = "Request Timeout";
151 static const char HTTP_RESPONSE_CONFLICT_STR[] PROGMEM = "Conflict";
152 static const char HTTP_RESPONSE_GONE_STR[] PROGMEM = "Gone";
153 static const char HTTP_RESPONSE_LENGTH_REQUIRED_STR[] PROGMEM = "Length Required";
154 static const char HTTP_RESPONSE_PRECONDITION_FAILED_STR[] PROGMEM = "Precondition Failed";
155 static const char HTTP_RESPONSE_REQUEST_ENTITY_TOO_LARGE_STR[] PROGMEM = "Request Entity Too Large";
156 static const char HTTP_RESPONSE_REQUEST_URI_TOO_LONG_STR[] PROGMEM = "Request-URI Too Long";
157 static const char HTTP_RESPONSE_UNSUPPORTED_MEDIA_TYPE_STR[] PROGMEM = "Unsupported Media Type";
158 static const char HTTP_RESPONSE_REQUESTED_RANGE_NOT_SATISFIABLE_STR[] PROGMEM = "Requested Range Not Satisfiable";
159 static const char HTTP_RESPONSE_EXPECTATION_FAILED_STR[] PROGMEM = "Expectation Failed";
160 static const char HTTP_RESPONSE_INTERNAL_SERVER_ERROR_STR[] PROGMEM = "Internal Server Error";
161 static const char HTTP_RESPONSE_NOT_IMPLEMENTED_STR[] PROGMEM = "Not Implemented";
162 static const char HTTP_RESPONSE_BAD_GATEWAY_STR[] PROGMEM = "Bad Gateway";
163 static const char HTTP_RESPONSE_SERVICE_UNAVAILABLE_STR[] PROGMEM = "Service Unavailable";
164 static const char HTTP_RESPONSE_GATEWAY_TIMEOUT_STR[] PROGMEM = "Gateway Timeout";
165 static const char HTTP_RESPONSE_HTTP_VERSION_NOT_SUPPORTED_STR[] PROGMEM = "HTTP Version Not Supported";
166 
168 
172 
173 static const char HTTP_HEADER_ACCEPT[] PROGMEM = "Accept";
174 static const char HTTP_HEADER_ACCEPT_CHARSET[] PROGMEM = "Accept-Charset";
175 static const char HTTP_HEADER_ACCEPT_ENCODING[] PROGMEM = "Accept-Encoding";
176 static const char HTTP_HEADER_ACCEPT_LANGUAGE[] PROGMEM = "Accept-Language";
177 static const char HTTP_HEADER_ACCEPT_DATETIME[] PROGMEM = "Accept-Datetime";
178 static const char HTTP_HEADER_AUTHORIZATION[] PROGMEM = "Authorization";
179 static const char HTTP_HEADER_CACHE_CONTROL[] PROGMEM = "Cache-Control";
180 static const char HTTP_HEADER_CONNECTION[] PROGMEM = "Connection";
181 static const char HTTP_HEADER_COOKIE[] PROGMEM = "Cookie";
182 static const char HTTP_HEADER_CONTENT_LENGTH[] PROGMEM = "Content-Length";
183 static const char HTTP_HEADER_CONTENT_MD5[] PROGMEM = "Content-MD5";
184 static const char HTTP_HEADER_CONTENT_TYPE[] PROGMEM = "Content-Type";
185 static const char HTTP_HEADER_DATE[] PROGMEM = "Date";
186 static const char HTTP_HEADER_EXPECT[] PROGMEM = "Expect";
187 static const char HTTP_HEADER_FROM[] PROGMEM = "From";
188 static const char HTTP_HEADER_HOST[] PROGMEM = "Host";
189 static const char HTTP_HEADER_IF_MATCH[] PROGMEM = "If-Match";
190 static const char HTTP_HEADER_IF_MODIFIED_SINCE[] PROGMEM = "If-Modified-Since";
191 static const char HTTP_HEADER_IF_NONE_MATCH[] PROGMEM = "If-None-Match";
192 static const char HTTP_HEADER_IF_RANGE[] PROGMEM = "If-Range";
193 static const char HTTP_HEADER_IF_UNMODIFIED_SINCE[] PROGMEM = "If-Unmodified-Since";
194 static const char HTTP_HEADER_MAX_FORWARDS[] PROGMEM = "Max-Forwards";
195 static const char HTTP_HEADER_ORIGIN[] PROGMEM = "Origin";
196 static const char HTTP_HEADER_PRAGMA[] PROGMEM = "Pragma";
197 static const char HTTP_HEADER_PROXY_AUTHORIZATION[] PROGMEM = "Proxy-Authorization";
198 static const char HTTP_HEADER_RANGE[] PROGMEM = "Range";
199 static const char HTTP_HEADER_REFERER[] PROGMEM = "Referer";
200 static const char HTTP_HEADER_TE[] PROGMEM = "TE";
201 static const char HTTP_HEADER_USER_AGENT[] PROGMEM = "User-Agent";
202 static const char HTTP_HEADER_UPGRADE[] PROGMEM = "Upgrade";
203 static const char HTTP_HEADER_VIA[] PROGMEM = "Via";
204 static const char HTTP_HEADER_WARNING[] PROGMEM = "Warning";
205 static const char HTTP_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN[] PROGMEM = "Access-Control-Allow-Origin";
206 static const char HTTP_HEADER_ACCEPT_PATCH[] PROGMEM = "Accept-Patch";
207 static const char HTTP_HEADER_ACCEPT_RANGES[] PROGMEM = "Accept-Ranges";
208 static const char HTTP_HEADER_AGE[] PROGMEM = "Age";
209 static const char HTTP_HEADER_ALLOW[] PROGMEM = "Allow";
210 static const char HTTP_HEADER_CONTENT_ENCODING[] PROGMEM = "Content-Encoding";
211 static const char HTTP_HEADER_CONTENT_LANGUAGE[] PROGMEM = "Content-Language";
212 static const char HTTP_HEADER_CONTENT_LOCATION[] PROGMEM = "Content-Location";
213 static const char HTTP_HEADER_CONTENT_DISPOSITION[] PROGMEM = "Content-Disposition";
214 static const char HTTP_HEADER_CONTENT_RANGE[] PROGMEM = "Content-Range";
215 static const char HTTP_HEADER_ETAG[] PROGMEM = "ETag";
216 static const char HTTP_HEADER_EXPIRES[] PROGMEM = "Expires";
217 static const char HTTP_HEADER_LAST_MODIFIED[] PROGMEM = "Last-Modified";
218 static const char HTTP_HEADER_LINK[] PROGMEM = "Link";
219 static const char HTTP_HEADER_LOCATION[] PROGMEM = "Location";
220 static const char HTTP_HEADER_P3P[] PROGMEM = "P3P";
221 static const char HTTP_HEADER_PROXY_AUTHENTICATE[] PROGMEM = "Proxy-Authenticate";
222 static const char HTTP_HEADER_REFRESH[] PROGMEM = "Refresh";
223 static const char HTTP_HEADER_RETRY_AFTER[] PROGMEM = "Retry-After";
224 static const char HTTP_HEADER_SERVER[] PROGMEM = "Server";
225 static const char HTTP_HEADER_SET_COOKIE[] PROGMEM = "Set-Cookie";
226 static const char HTTP_HEADER_STATUS[] PROGMEM = "Status";
227 static const char HTTP_HEADER_STRICT_TRANSPORT_SECURITY[] PROGMEM = "Strict-Transport-Security";
228 static const char HTTP_HEADER_TRAILER[] PROGMEM = "Trailer";
229 static const char HTTP_HEADER_TRANSFER_ENCODING[] PROGMEM = "Transfer-Encoding";
230 static const char HTTP_HEADER_VARY[] PROGMEM = "Vary";
231 static const char HTTP_HEADER_WWW_AUTHENTICATE[] PROGMEM = "WWW-Authenticate";
232 
235 
236 #endif
static const uint8_t HTTP_METHOD_PROPPATCH
Definition: HTTPConstants.h:48
static const uint8_t HTTP_METHOD_UNLOCK
Definition: HTTPConstants.h:53
static const uint16_t HTTP_RESPONSE_CREATED
The request has succeeded and a new resource has been created as a result of it.
Definition: HTTPConstants.h:78
static const uint8_t HTTP_METHOD_OPTIONS
Definition: HTTPConstants.h:39
static const uint16_t HTTP_RESPONSE_MULTIPLE_CHOICE
The request has more than one possible responses.
Definition: HTTPConstants.h:84
static const char HTTP_HEADER_EXPIRES[]
Gives the date/time after which the response is considered stale (in "HTTP-date" format as defined by...
static const char HTTP_RESPONSE_METHOD_NOT_ALLOWED_STR[]
static const char HTTP_HEADER_REFRESH[]
Used in redirection, or when a new resource has been created.
static const uint8_t HTTP_METHOD_MERGE
Definition: HTTPConstants.h:62
static const char HTTP_HEADER_ALLOW[]
Valid actions for a specified resource.
static const char HTTP_RESPONSE_TEMPORARY_REDIRECT_STR[]
static const char HTTP_HEADER_CONTENT_LENGTH[]
The length of the request body in octets (8-bit bytes) .
static const uint16_t HTTP_RESPONSE_CONFLICT
This response would be sent when a request conflict with current state of server. ...
static const uint8_t HTTP_METHOD_UPDATE
Definition: HTTPConstants.h:60
static const char HTTP_RESPONSE_HTTP_VERSION_NOT_SUPPORTED_STR[]
static const char HTTP_HEADER_COOKIE[]
An HTTP cookie previously sent by the server with Set-Cookie (below) .
static const char HTTP_HEADER_IF_MATCH[]
Only perform the action if the client supplied entity matches the same entity on the server...
static const char HTTP_RESPONSE_FORBIDDEN_STR[]
static const char HTTP_HEADER_DATE[]
The date and time that the message was sent (in "HTTP-date" format as defined by RFC 7231 Date/Time F...
static const char HTTP_HEADER_ACCEPT_DATETIME[]
Acceptable version in time .
static const char HTTP_HEADER_REFERER[]
This is the address of the previous web page from which a link to the currently requested page was fo...
static const char HTTP_RESPONSE_USE_PROXY_STR[]
static const char HTTP_HEADER_VIA[]
Informs the server of proxies through which the request was sent.
static const char HTTP_HEADER_CONTENT_ENCODING[]
The type of encoding used on the data.
static const uint16_t HTTP_RESPONSE_SEE_OTHER
Server sent this response to directing client to get requested resource to another URI with an GET re...
Definition: HTTPConstants.h:87
static const char HTTP_RESPONSE_UNSUPPORTED_MEDIA_TYPE_STR[]
static const char HTTP_HEADER_AGE[]
The age the object has been in a proxy cache in seconds .
static const uint16_t HTTP_RESPONSE_NON_AUTHORITATIVE_INFORMATION
This response code means returned meta-information set is not exact set as available from the origin ...
Definition: HTTPConstants.h:80
static const uint16_t HTTP_RESPONSE_UNSUPPORTED_MEDIA_TYPE
The media format of the requested data is not supported by the server, so the server is rejecting the...
static const char HTTP_HEADER_LAST_MODIFIED[]
The last modified date for the requested object (in "HTTP-date" format as defined by RFC 7231) ...
static const uint16_t HTTP_RESPONSE_REQUEST_TIMEOUT
This response is sent on an idle connection by some servers, even without any previous request by the...
static const uint16_t HTTP_RESPONSE_ACCEPTED
The request has been received but not yet acted upon.
Definition: HTTPConstants.h:79
static const char HTTP_RESPONSE_ACCEPTED_STR[]
static const uint8_t HTTP_METHOD_MKWORKSPACE
Definition: HTTPConstants.h:59
static const char HTTP_HEADER_ACCEPT[]
Content-Types that are acceptable for the response.
static const char HTTP_HEADER_TE[]
The transfer encodings the user agent is willing to accept: the same values as for the response heade...
static const uint16_t HTTP_RESPONSE_PARTIAL_CONTENT
This response code is used because of range header sent by the client to separate download into multi...
Definition: HTTPConstants.h:83
static const char HTTP_RESPONSE_MOVED_PERMANENTLY_STR[]
static const char HTTP_HEADER_ACCEPT_RANGES[]
What partial content range types this server supports .
static const char HTTP_RESPONSE_INTERNAL_SERVER_ERROR_STR[]
static const char HTTP_RESPONSE_REQUEST_URI_TOO_LONG_STR[]
static const uint16_t HTTP_RESPONSE_NOT_ACCEPTABLE
This response is sent when the web server, after performing server-driven content negotiation...
Definition: HTTPConstants.h:99
static const uint8_t HTTP_METHOD_REPORT
Definition: HTTPConstants.h:55
static const char HTTP_RESPONSE_PROXY_AUTHENTICATION_REQUIRED_STR[]
static const char HTTP_RESPONSE_NO_CONTENT_STR[]
static const char HTTP_HEADER_SERVER[]
A name for the server .
static const uint8_t HTTP_METHOD_GET
Definition: HTTPConstants.h:40
static const char HTTP_RESPONSE_FOUND_STR[]
static const char HTTP_HEADER_AUTHORIZATION[]
Authentication credentials for HTTP authentication .
static const uint16_t HTTP_RESPONSE_NOT_MODIFIED
This is used for caching purposes.
Definition: HTTPConstants.h:88
static const uint16_t HTTP_RESPONSE_HTTP_VERSION_NOT_SUPPORTED
The HTTP version used in the request is not supported by the server.
static const char HTTP_HEADER_IF_UNMODIFIED_SINCE[]
Only send the response if the entity has not been modified since a specific time. ...
static const uint16_t HTTP_RESPONSE_PERMANENT_REDIRECT
This means that the resource is now permanently located at another URI, specified by the Location: HT...
Definition: HTTPConstants.h:92
static const uint16_t HTTP_RESPONSE_INTERNAL_SERVER_ERROR
The server has encountered a situation it doesn't know how to handle.
static const uint8_t HTTP_METHOD_SEARCH
Definition: HTTPConstants.h:67
static const uint8_t HTTP_METHOD_MKACTIVITY
Definition: HTTPConstants.h:64
static const char HTTP_RESPONSE_CREATED_STR[]
static const uint8_t HTTP_METHOD_POST
Definition: HTTPConstants.h:42
static const uint8_t HTTP_METHOD_UNCHECKOUT
Definition: HTTPConstants.h:58
static const uint16_t HTTP_RESPONSE_PAYMENT_REQUIRED
This response code is reserved for future use.
Definition: HTTPConstants.h:95
static const char HTTP_HEADER_PRAGMA[]
Implementation-specific fields that may have various effects anywhere along the request-response chai...
static const uint8_t HTTP_METHOD_PUT
Definition: HTTPConstants.h:43
static const uint16_t HTTP_RESPONSE_CONTINUE
This interim response indicates that everything so far is OK and that the client should continue with...
Definition: HTTPConstants.h:75
static const char HTTP_RESPONSE_BAD_REQUEST_STR[]
static const char HTTP_RESPONSE_SERVICE_UNAVAILABLE_STR[]
static const char HTTP_HEADER_P3P[]
This field is supposed to set P3P policy, in the form of P3P:CP="your_compact_policy".
static const char HTTP_RESPONSE_MULTIPLE_CHOICE_STR[]
static const uint8_t HTTP_METHOD_MOVE
Definition: HTTPConstants.h:51
static const uint8_t HTTP_METHOD_ACL
Definition: HTTPConstants.h:66
static const char HTTP_HEADER_EXPECT[]
Indicates that particular server behaviors are required by the client .
static const char HTTP_HEADER_CONTENT_RANGE[]
Where in a full body message this partial message belongs .
static const uint16_t HTTP_RESPONSE_NO_CONTENT
There is no content to send for this request, but the headers may be useful.
Definition: HTTPConstants.h:81
static const char HTTP_RESPONSE_NOT_ACCEPTABLE_STR[]
static const char HTTP_RESPONSE_PARTIAL_CONTENT_STR[]
static const uint16_t HTTP_RESPONSE_MOVED_PERMANENTLY
This response code means that URI of requested resource has been changed.
Definition: HTTPConstants.h:85
static const char HTTP_HEADER_STATUS[]
CGI header field specifying the status of the HTTP response.
static const char HTTP_HEADER_RANGE[]
Request only part of an entity.
static const char HTTP_HEADER_RETRY_AFTER[]
If an entity is temporarily unavailable, this instructs the client to try again later.
static const char HTTP_HEADER_WWW_AUTHENTICATE[]
Indicates the authentication scheme that should be used to access the requested entity.
static const uint16_t HTTP_RESPONSE_FOUND
This response code means that URI of requested resource has been changed temporarily.
Definition: HTTPConstants.h:86
static const char HTTP_HEADER_LOCATION[]
Used in redirection, or when a new resource has been created.
static const char HTTP_HEADER_IF_MODIFIED_SINCE[]
Allows a 304 Not Modified to be returned if content is unchanged .
static const char HTTP_HEADER_CONNECTION[]
Control options for the current connection and List of hop-by-hop request fields[8] ...
static const char HTTP_RESPONSE_UNAUTHORIZED_STR[]
static const char HTTP_HEADER_STRICT_TRANSPORT_SECURITY[]
A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this appl...
static const uint8_t HTTP_METHOD_CHECKOUT
Definition: HTTPConstants.h:56
static const char HTTP_RESPONSE_PRECONDITION_FAILED_STR[]
static const uint8_t HTTP_METHOD_LOCK
Definition: HTTPConstants.h:52
static const uint8_t HTTP_METHOD_HEAD
Definition: HTTPConstants.h:41
static const char HTTP_RESPONSE_NON_AUTHORITATIVE_INFORMATION_STR[]
static const char HTTP_HEADER_PROXY_AUTHENTICATE[]
Request authentication to access the proxy.
static const uint16_t HTTP_RESPONSE_REQUEST_URI_TOO_LONG
The URI requested by the client is too long for the server to handle.
static const uint16_t HTTP_RESPONSE_GATEWAY_TIMEOUT
This error response is given when the server is acting as a gateway and cannot get a response in time...
static const uint16_t HTTP_RESPONSE_PROXY_AUTHENTICATION_REQUIRED
This is similar to 401 but authentication is needed to be done by a proxy.
static const uint16_t HTTP_RESPONSE_BAD_REQUEST
This response means that server could not understand the request due to invalid syntax.
Definition: HTTPConstants.h:93
static const char HTTP_RESPONSE_NOT_FOUND_STR[]
static const char HTTP_HEADER_CONTENT_LOCATION[]
An alternate location for the returned data .
static const char HTTP_HEADER_ACCEPT_PATCH[]
Specifies which patch document formats this server supports .
static const uint8_t HTTP_METHOD_COPY
Definition: HTTPConstants.h:50
static const uint16_t HTTP_RESPONSE_EXPECTATION_FAILED
This response code means the expectation indicated by the Expect request header field can't be met by...
static const char HTTP_RESPONSE_SWITCHING_PROTOCOL_STR[]
static const uint16_t HTTP_RESPONSE_OK
The request has succeeded.
Definition: HTTPConstants.h:77
static const uint16_t HTTP_RESPONSE_PRECONDITION_FAILED
The client has indicated preconditions in its headers which the server does not meet.
static const uint16_t HTTP_RESPONSE_REQUESTED_RANGE_NOT_SATISFIABLE
The range specified by the Range header field in the request can't be fulfilled; it's possible that t...
static const uint8_t HTTP_METHOD_CHECKIN
Definition: HTTPConstants.h:57
static const char HTTP_RESPONSE_PERMANENT_REDIRECT_STR[]
static const char HTTP_RESPONSE_SEE_OTHER_STR[]
static const char HTTP_HEADER_LINK[]
Used to express a typed relationship with another resource, where the relation type is defined by RFC...
static const uint8_t HTTP_METHOD_ORDERPATCH
Definition: HTTPConstants.h:65
static const uint8_t HTTP_METHOD_VERSION_CONTROL
Definition: HTTPConstants.h:54
static const uint16_t HTTP_RESPONSE_SWITCHING_PROTOCOL
This code is sent in response to an Upgrade: request header by the client, and indicates that the pro...
Definition: HTTPConstants.h:76
static const uint8_t HTTP_METHOD_PROPFIND
Definition: HTTPConstants.h:47
static const char HTTP_HEADER_ACCEPT_LANGUAGE[]
List of acceptable human languages for response.
static const uint16_t HTTP_RESPONSE_BAD_GATEWAY
This error response means that the server, while working as a gateway to get a response needed to han...
static const uint8_t HTTP_METHOD_CONNECT
Definition: HTTPConstants.h:46
static const uint16_t HTTP_RESPONSE_RESET_CONTENT
This response code is sent after accomplishing request to tell user agent reset document view which s...
Definition: HTTPConstants.h:82
static const uint16_t HTTP_RESPONSE_REQUEST_ENTITY_TOO_LARGE
Request entity is larger than limits defined by server; the server might close the connection or retu...
static const char HTTP_RESPONSE_OK_STR[]
static const char HTTP_RESPONSE_CONTINUE_STR[]
static const uint16_t HTTP_RESPONSE_UNUSED
This response code is no longer used, it is just reserved currently.
Definition: HTTPConstants.h:90
static const uint8_t HTTP_METHOD_BASELINE_CONTROL
Definition: HTTPConstants.h:63
static const uint16_t HTTP_RESPONSE_GONE
This response would be sent when requested content has been deleted from server.
static const char HTTP_HEADER_PROXY_AUTHORIZATION[]
Authorization credentials for connecting to a proxy.
static const char HTTP_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN[]
Specifying which web sites can participate in cross-origin resource sharing .
static const char HTTP_HEADER_FROM[]
The email address of the user making the request .
static const char HTTP_RESPONSE_REQUESTED_RANGE_NOT_SATISFIABLE_STR[]
static const char HTTP_HEADER_ETAG[]
An identifier for a specific version of a resource, often a message digest .
static const char HTTP_RESPONSE_LENGTH_REQUIRED_STR[]
static const char HTTP_HEADER_TRAILER[]
The Trailer general field value indicates that the given set of header fields is present in the trail...
static const uint16_t HTTP_RESPONSE_LENGTH_REQUIRED
Server rejected the request because the Content-Length header field is not defined and the server req...
static const char HTTP_HEADER_VARY[]
Tells downstream proxies how to match future request headers to decide whether the cached response ca...
static const uint16_t HTTP_RESPONSE_USE_PROXY
This means requested response must be accessed by a proxy.
Definition: HTTPConstants.h:89
static const char HTTP_HEADER_CONTENT_TYPE[]
The MIME type of the body of the request (used with POST and PUT requests) .
static const char HTTP_RESPONSE_RESET_CONTENT_STR[]
static const char HTTP_HEADER_MAX_FORWARDS[]
Limit the number of times the message can be forwarded through proxies or gateways.
static const uint16_t HTTP_RESPONSE_NOT_FOUND
Server can not find requested resource.
Definition: HTTPConstants.h:97
static const char HTTP_RESPONSE_PAYMENT_REQUIRED_STR[]
static const uint8_t HTTP_METHOD_LABEL
Definition: HTTPConstants.h:61
static const char HTTP_HEADER_USER_AGENT[]
The user agent string of the user agent .
static const char HTTP_RESPONSE_NOT_IMPLEMENTED_STR[]
static const char HTTP_HEADER_CONTENT_DISPOSITION[]
An opportunity to raise a "File Download" dialogue box for a known MIME type with binary format or su...
static const char HTTP_HEADER_IF_RANGE[]
If the entity is unchanged, send me the part(s) that I am missing; otherwise, send me the entire new ...
static const char HTTP_HEADER_HOST[]
The domain name of the server (for virtual hosting), and the TCP port number on which the server is L...
static const uint8_t HTTP_METHOD_TRACE
Definition: HTTPConstants.h:45
static const char HTTP_RESPONSE_NOT_MODIFIED_STR[]
static const char HTTP_RESPONSE_UNUSED_STR[]
static const uint16_t HTTP_RESPONSE_TEMPORARY_REDIRECT
Server sent this response to directing client to get requested resource to another URI with same meth...
Definition: HTTPConstants.h:91
static const char HTTP_RESPONSE_GONE_STR[]
static const uint16_t HTTP_RESPONSE_UNAUTHORIZED
Authentication is needed to get requested response.
Definition: HTTPConstants.h:94
static const char HTTP_HEADER_ACCEPT_CHARSET[]
Character sets that are acceptable .
static const char HTTP_HEADER_ACCEPT_ENCODING[]
List of acceptable encodings.
static const char HTTP_HEADER_TRANSFER_ENCODING[]
The form of encoding used to safely transfer the entity to the user.
static const char HTTP_HEADER_WARNING[]
A general warning about possible problems with the entity body.
static const char HTTP_HEADER_IF_NONE_MATCH[]
Allows a 304 Not Modified to be returned if content is unchanged, see HTTP ETag . ...
static const char HTTP_HEADER_CONTENT_LANGUAGE[]
The language the content is in .
static const uint8_t HTTP_METHOD_DELETE
Definition: HTTPConstants.h:44
static const char HTTP_RESPONSE_GATEWAY_TIMEOUT_STR[]
static const uint16_t HTTP_RESPONSE_METHOD_NOT_ALLOWED
The request method is known by the server but has been disabled and cannot be used.
Definition: HTTPConstants.h:98
static const char HTTP_RESPONSE_CONFLICT_STR[]
static const char HTTP_HEADER_ORIGIN[]
Initiates a request for cross-origin resource sharing (asks server for an 'Access-Control-Allow-Origi...
static const char HTTP_RESPONSE_BAD_GATEWAY_STR[]
static const char HTTP_RESPONSE_REQUEST_ENTITY_TOO_LARGE_STR[]
static const char HTTP_RESPONSE_REQUEST_TIMEOUT_STR[]
static const char HTTP_HEADER_SET_COOKIE[]
An HTTP cookie .
static const char HTTP_HEADER_CACHE_CONTROL[]
Used to specify directives that must be obeyed by all caching mechanisms along the request-response c...
static const char HTTP_RESPONSE_EXPECTATION_FAILED_STR[]
static const uint16_t HTTP_RESPONSE_FORBIDDEN
Client does not have access rights to the content so server is rejecting to give proper response...
Definition: HTTPConstants.h:96
static const uint16_t HTTP_RESPONSE_NOT_IMPLEMENTED
The request method is not supported by the server and cannot be handled.
static const char HTTP_HEADER_CONTENT_MD5[]
A Base64-encoded binary MD5 sum of the content of the request body .
static const char HTTP_HEADER_UPGRADE[]
Ask the server to upgrade to another protocol.
static const uint16_t HTTP_RESPONSE_SERVICE_UNAVAILABLE
The server is not ready to handle the request.
static const char CONTENT_TYPE_TEXT_HTML[]
Definition: HTTPConstants.h:30
static const uint8_t HTTP_METHOD_MKCOL
Definition: HTTPConstants.h:49
static const char CONTENT_TYPE_APPLICATION_JSON[]
Definition: HTTPConstants.h:31