aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2019-06-09 11:48:08 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2019-06-09 12:14:30 +0300
commit6c1d4ad70173f8cd14887daa9f19cd85abad9c5b (patch)
tree4f54671efdc5af86a32e7f1ca9c5933da7c6b0da /src/include
parente5f188a4cb924508d49419a1fb7ca98b5740f423 (diff)
downloadlibmicrohttpd-6c1d4ad70173f8cd14887daa9f19cd85abad9c5b.tar.gz
libmicrohttpd-6c1d4ad70173f8cd14887daa9f19cd85abad9c5b.zip
Updated HTTP status codes
Diffstat (limited to 'src/include')
-rw-r--r--src/include/microhttpd.h67
1 files changed, 66 insertions, 1 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index 70a1b5be..89628d8b 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -304,79 +304,144 @@ _MHD_DEPR_MACRO("Macro MHD_LONG_LONG_PRINTF is deprecated, use MHD_UNSIGNED_LONG
304/** 304/**
305 * @defgroup httpcode HTTP response codes. 305 * @defgroup httpcode HTTP response codes.
306 * These are the status codes defined for HTTP responses. 306 * These are the status codes defined for HTTP responses.
307 * See: https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
308 * Registry export date: 2019-06-09
307 * @{ 309 * @{
308 */ 310 */
309/* See http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml */
310 311
312/* 100 "Continue". RFC7231, Section 6.2.1. */
311#define MHD_HTTP_CONTINUE 100 313#define MHD_HTTP_CONTINUE 100
314/* 101 "Switching Protocols". RFC7231, Section 6.2.2. */
312#define MHD_HTTP_SWITCHING_PROTOCOLS 101 315#define MHD_HTTP_SWITCHING_PROTOCOLS 101
316/* 102 "Processing". RFC2518. */
313#define MHD_HTTP_PROCESSING 102 317#define MHD_HTTP_PROCESSING 102
318/* 103 "Early Hints". RFC8297. */
319#define MHD_HTTP_EARLY_HINTS 103
314 320
321/* 200 "OK". RFC7231, Section 6.3.1. */
315#define MHD_HTTP_OK 200 322#define MHD_HTTP_OK 200
323/* 201 "Created". RFC7231, Section 6.3.2. */
316#define MHD_HTTP_CREATED 201 324#define MHD_HTTP_CREATED 201
325/* 202 "Accepted". RFC7231, Section 6.3.3. */
317#define MHD_HTTP_ACCEPTED 202 326#define MHD_HTTP_ACCEPTED 202
327/* 203 "Non-Authoritative Information". RFC7231, Section 6.3.4. */
318#define MHD_HTTP_NON_AUTHORITATIVE_INFORMATION 203 328#define MHD_HTTP_NON_AUTHORITATIVE_INFORMATION 203
329/* 204 "No Content". RFC7231, Section 6.3.5. */
319#define MHD_HTTP_NO_CONTENT 204 330#define MHD_HTTP_NO_CONTENT 204
331/* 205 "Reset Content". RFC7231, Section 6.3.6. */
320#define MHD_HTTP_RESET_CONTENT 205 332#define MHD_HTTP_RESET_CONTENT 205
333/* 206 "Partial Content". RFC7233, Section 4.1. */
321#define MHD_HTTP_PARTIAL_CONTENT 206 334#define MHD_HTTP_PARTIAL_CONTENT 206
335/* 207 "Multi-Status". RFC4918. */
322#define MHD_HTTP_MULTI_STATUS 207 336#define MHD_HTTP_MULTI_STATUS 207
337/* 208 "Already Reported". RFC5842. */
323#define MHD_HTTP_ALREADY_REPORTED 208 338#define MHD_HTTP_ALREADY_REPORTED 208
324 339
340/* 226 "IM Used". RFC3229. */
325#define MHD_HTTP_IM_USED 226 341#define MHD_HTTP_IM_USED 226
326 342
343/* 300 "Multiple Choices". RFC7231, Section 6.4.1. */
327#define MHD_HTTP_MULTIPLE_CHOICES 300 344#define MHD_HTTP_MULTIPLE_CHOICES 300
345/* 301 "Moved Permanently". RFC7231, Section 6.4.2. */
328#define MHD_HTTP_MOVED_PERMANENTLY 301 346#define MHD_HTTP_MOVED_PERMANENTLY 301
347/* 302 "Found". RFC7231, Section 6.4.3. */
329#define MHD_HTTP_FOUND 302 348#define MHD_HTTP_FOUND 302
349/* 303 "See Other". RFC7231, Section 6.4.4. */
330#define MHD_HTTP_SEE_OTHER 303 350#define MHD_HTTP_SEE_OTHER 303
351/* 304 "Not Modified". RFC7232, Section 4.1. */
331#define MHD_HTTP_NOT_MODIFIED 304 352#define MHD_HTTP_NOT_MODIFIED 304
353/* 305 "Use Proxy". RFC7231, Section 6.4.5. */
332#define MHD_HTTP_USE_PROXY 305 354#define MHD_HTTP_USE_PROXY 305
355/* 306 "Switch Proxy". Not used! RFC7231, Section 6.4.6. */
333#define MHD_HTTP_SWITCH_PROXY 306 356#define MHD_HTTP_SWITCH_PROXY 306
357/* 307 "Temporary Redirect". RFC7231, Section 6.4.7. */
334#define MHD_HTTP_TEMPORARY_REDIRECT 307 358#define MHD_HTTP_TEMPORARY_REDIRECT 307
359/* 308 "Permanent Redirect". RFC7538. */
335#define MHD_HTTP_PERMANENT_REDIRECT 308 360#define MHD_HTTP_PERMANENT_REDIRECT 308
336 361
362/* 400 "Bad Request". RFC7231, Section 6.5.1. */
337#define MHD_HTTP_BAD_REQUEST 400 363#define MHD_HTTP_BAD_REQUEST 400
364/* 401 "Unauthorized". RFC7235, Section 3.1. */
338#define MHD_HTTP_UNAUTHORIZED 401 365#define MHD_HTTP_UNAUTHORIZED 401
366/* 402 "Payment Required". RFC7231, Section 6.5.2. */
339#define MHD_HTTP_PAYMENT_REQUIRED 402 367#define MHD_HTTP_PAYMENT_REQUIRED 402
368/* 403 "Forbidden". RFC7231, Section 6.5.3. */
340#define MHD_HTTP_FORBIDDEN 403 369#define MHD_HTTP_FORBIDDEN 403
370/* 404 "Not Found". RFC7231, Section 6.5.4. */
341#define MHD_HTTP_NOT_FOUND 404 371#define MHD_HTTP_NOT_FOUND 404
372/* 405 "Method Not Allowed". RFC7231, Section 6.5.5. */
342#define MHD_HTTP_METHOD_NOT_ALLOWED 405 373#define MHD_HTTP_METHOD_NOT_ALLOWED 405
374/* 406 "Not Acceptable". RFC7231, Section 6.5.6. */
343#define MHD_HTTP_NOT_ACCEPTABLE 406 375#define MHD_HTTP_NOT_ACCEPTABLE 406
376/* 407 "Proxy Authentication Required". RFC7235, Section 3.2. */
344#define MHD_HTTP_PROXY_AUTHENTICATION_REQUIRED 407 377#define MHD_HTTP_PROXY_AUTHENTICATION_REQUIRED 407
378/* 408 "Request Timeout". RFC7231, Section 6.5.7. */
345#define MHD_HTTP_REQUEST_TIMEOUT 408 379#define MHD_HTTP_REQUEST_TIMEOUT 408
380/* 409 "Conflict". RFC7231, Section 6.5.8. */
346#define MHD_HTTP_CONFLICT 409 381#define MHD_HTTP_CONFLICT 409
382/* 410 "Gone". RFC7231, Section 6.5.9. */
347#define MHD_HTTP_GONE 410 383#define MHD_HTTP_GONE 410
384/* 411 "Length Required". RFC7231, Section 6.5.10. */
348#define MHD_HTTP_LENGTH_REQUIRED 411 385#define MHD_HTTP_LENGTH_REQUIRED 411
386/* 412 "Precondition Failed". RFC7232, Section 4.2; RFC8144, Section 3.2. */
349#define MHD_HTTP_PRECONDITION_FAILED 412 387#define MHD_HTTP_PRECONDITION_FAILED 412
388/* 413 "Payload Too Large". RFC7231, Section 6.5.11. */
350#define MHD_HTTP_PAYLOAD_TOO_LARGE 413 389#define MHD_HTTP_PAYLOAD_TOO_LARGE 413
390/* 414 "URI Too Long". RFC7231, Section 6.5.12. */
351#define MHD_HTTP_URI_TOO_LONG 414 391#define MHD_HTTP_URI_TOO_LONG 414
392/* 415 "Unsupported Media Type". RFC7231, Section 6.5.13; RFC7694, Section 3. */
352#define MHD_HTTP_UNSUPPORTED_MEDIA_TYPE 415 393#define MHD_HTTP_UNSUPPORTED_MEDIA_TYPE 415
394/* 416 "Range Not Satisfiable". RFC7233, Section 4.4. */
353#define MHD_HTTP_RANGE_NOT_SATISFIABLE 416 395#define MHD_HTTP_RANGE_NOT_SATISFIABLE 416
396/* 417 "Expectation Failed". RFC7231, Section 6.5.14. */
354#define MHD_HTTP_EXPECTATION_FAILED 417 397#define MHD_HTTP_EXPECTATION_FAILED 417
355 398
399/* 421 "Misdirected Request". RFC7540, Section 9.1.2. */
356#define MHD_HTTP_MISDIRECTED_REQUEST 421 400#define MHD_HTTP_MISDIRECTED_REQUEST 421
401/* 422 "Unprocessable Entity". RFC4918. */
357#define MHD_HTTP_UNPROCESSABLE_ENTITY 422 402#define MHD_HTTP_UNPROCESSABLE_ENTITY 422
403/* 423 "Locked". RFC4918. */
358#define MHD_HTTP_LOCKED 423 404#define MHD_HTTP_LOCKED 423
405/* 424 "Failed Dependency". RFC4918. */
359#define MHD_HTTP_FAILED_DEPENDENCY 424 406#define MHD_HTTP_FAILED_DEPENDENCY 424
407/* 425 "Too Early". RFC8470. */
408#define MHD_HTTP_TOO_EARLY 425
409/* 426 "Upgrade Required". RFC7231, Section 6.5.15. */
360#define MHD_HTTP_UPGRADE_REQUIRED 426 410#define MHD_HTTP_UPGRADE_REQUIRED 426
361 411
412/* 428 "Precondition Required". RFC6585. */
362#define MHD_HTTP_PRECONDITION_REQUIRED 428 413#define MHD_HTTP_PRECONDITION_REQUIRED 428
414/* 429 "Too Many Requests". RFC6585. */
363#define MHD_HTTP_TOO_MANY_REQUESTS 429 415#define MHD_HTTP_TOO_MANY_REQUESTS 429
364 416
417/* 431 "Request Header Fields Too Large". RFC6585. */
365#define MHD_HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE 431 418#define MHD_HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE 431
366 419
420/* 451 "Unavailable For Legal Reasons". RFC7725. */
367#define MHD_HTTP_UNAVAILABLE_FOR_LEGAL_REASONS 451 421#define MHD_HTTP_UNAVAILABLE_FOR_LEGAL_REASONS 451
368 422
423/* 500 "Internal Server Error". RFC7231, Section 6.6.1. */
369#define MHD_HTTP_INTERNAL_SERVER_ERROR 500 424#define MHD_HTTP_INTERNAL_SERVER_ERROR 500
425/* 501 "Not Implemented". RFC7231, Section 6.6.2. */
370#define MHD_HTTP_NOT_IMPLEMENTED 501 426#define MHD_HTTP_NOT_IMPLEMENTED 501
427/* 502 "Bad Gateway". RFC7231, Section 6.6.3. */
371#define MHD_HTTP_BAD_GATEWAY 502 428#define MHD_HTTP_BAD_GATEWAY 502
429/* 503 "Service Unavailable". RFC7231, Section 6.6.4. */
372#define MHD_HTTP_SERVICE_UNAVAILABLE 503 430#define MHD_HTTP_SERVICE_UNAVAILABLE 503
431/* 504 "Gateway Timeout". RFC7231, Section 6.6.5. */
373#define MHD_HTTP_GATEWAY_TIMEOUT 504 432#define MHD_HTTP_GATEWAY_TIMEOUT 504
433/* 505 "HTTP Version Not Supported". RFC7231, Section 6.6.6. */
374#define MHD_HTTP_HTTP_VERSION_NOT_SUPPORTED 505 434#define MHD_HTTP_HTTP_VERSION_NOT_SUPPORTED 505
435/* 506 "Variant Also Negotiates". RFC2295. */
375#define MHD_HTTP_VARIANT_ALSO_NEGOTIATES 506 436#define MHD_HTTP_VARIANT_ALSO_NEGOTIATES 506
437/* 507 "Insufficient Storage". RFC4918. */
376#define MHD_HTTP_INSUFFICIENT_STORAGE 507 438#define MHD_HTTP_INSUFFICIENT_STORAGE 507
439/* 508 "Loop Detected". RFC5842. */
377#define MHD_HTTP_LOOP_DETECTED 508 440#define MHD_HTTP_LOOP_DETECTED 508
378 441
442/* 510 "Not Extended". RFC2774. */
379#define MHD_HTTP_NOT_EXTENDED 510 443#define MHD_HTTP_NOT_EXTENDED 510
444/* 511 "Network Authentication Required". RFC6585. */
380#define MHD_HTTP_NETWORK_AUTHENTICATION_REQUIRED 511 445#define MHD_HTTP_NETWORK_AUTHENTICATION_REQUIRED 511
381 446
382 447