aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2019-06-09 11:20:00 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2019-06-09 12:14:29 +0300
commitbadb814e445fa6cb7060dbfb3591095797e05c83 (patch)
tree1c2958ef3f5b0bb467f42f0207593d896f8e7c26
parentb0e9299664b2b24721cf1e34e51a405f27a55bb0 (diff)
downloadlibmicrohttpd-badb814e445fa6cb7060dbfb3591095797e05c83.tar.gz
libmicrohttpd-badb814e445fa6cb7060dbfb3591095797e05c83.zip
microhttpd.h: moved together deprecated and non-standard HTTP status codes,
deprecated more HTTP status codes
-rw-r--r--src/include/microhttpd.h30
1 files changed, 24 insertions, 6 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index 2dee0c0b..70a1b5be 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -357,17 +357,13 @@ _MHD_DEPR_MACRO("Macro MHD_LONG_LONG_PRINTF is deprecated, use MHD_UNSIGNED_LONG
357#define MHD_HTTP_UNPROCESSABLE_ENTITY 422 357#define MHD_HTTP_UNPROCESSABLE_ENTITY 422
358#define MHD_HTTP_LOCKED 423 358#define MHD_HTTP_LOCKED 423
359#define MHD_HTTP_FAILED_DEPENDENCY 424 359#define MHD_HTTP_FAILED_DEPENDENCY 424
360#define MHD_HTTP_UNORDERED_COLLECTION 425
361#define MHD_HTTP_UPGRADE_REQUIRED 426 360#define MHD_HTTP_UPGRADE_REQUIRED 426
362 361
363#define MHD_HTTP_PRECONDITION_REQUIRED 428 362#define MHD_HTTP_PRECONDITION_REQUIRED 428
364#define MHD_HTTP_TOO_MANY_REQUESTS 429 363#define MHD_HTTP_TOO_MANY_REQUESTS 429
365#define MHD_HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE 431
366 364
367#define MHD_HTTP_NO_RESPONSE 444 365#define MHD_HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE 431
368 366
369#define MHD_HTTP_RETRY_WITH 449
370#define MHD_HTTP_BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS 450
371#define MHD_HTTP_UNAVAILABLE_FOR_LEGAL_REASONS 451 367#define MHD_HTTP_UNAVAILABLE_FOR_LEGAL_REASONS 451
372 368
373#define MHD_HTTP_INTERNAL_SERVER_ERROR 500 369#define MHD_HTTP_INTERNAL_SERVER_ERROR 500
@@ -379,10 +375,23 @@ _MHD_DEPR_MACRO("Macro MHD_LONG_LONG_PRINTF is deprecated, use MHD_UNSIGNED_LONG
379#define MHD_HTTP_VARIANT_ALSO_NEGOTIATES 506 375#define MHD_HTTP_VARIANT_ALSO_NEGOTIATES 506
380#define MHD_HTTP_INSUFFICIENT_STORAGE 507 376#define MHD_HTTP_INSUFFICIENT_STORAGE 507
381#define MHD_HTTP_LOOP_DETECTED 508 377#define MHD_HTTP_LOOP_DETECTED 508
382#define MHD_HTTP_BANDWIDTH_LIMIT_EXCEEDED 509 378
383#define MHD_HTTP_NOT_EXTENDED 510 379#define MHD_HTTP_NOT_EXTENDED 510
384#define MHD_HTTP_NETWORK_AUTHENTICATION_REQUIRED 511 380#define MHD_HTTP_NETWORK_AUTHENTICATION_REQUIRED 511
385 381
382
383/* Not registered non-standard codes */
384/* 449 "Reply With". MS IIS extension. */
385#define MHD_HTTP_RETRY_WITH 449
386
387/* 450 "Blocked by Windows Parental Controls". MS extension. */
388#define MHD_HTTP_BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS 450
389
390/* 509 "Bandwidth Limit Exceeded". Apache extension. */
391#define MHD_HTTP_BANDWIDTH_LIMIT_EXCEEDED 509
392
393
394/* Deprecated codes */
386/** @deprecated */ 395/** @deprecated */
387#define MHD_HTTP_METHOD_NOT_ACCEPTABLE \ 396#define MHD_HTTP_METHOD_NOT_ACCEPTABLE \
388 _MHD_DEPR_IN_MACRO("Value MHD_HTTP_METHOD_NOT_ACCEPTABLE is deprecated, use MHD_HTTP_NOT_ACCEPTABLE") 406 397 _MHD_DEPR_IN_MACRO("Value MHD_HTTP_METHOD_NOT_ACCEPTABLE is deprecated, use MHD_HTTP_NOT_ACCEPTABLE") 406
@@ -399,6 +408,15 @@ _MHD_DEPR_MACRO("Macro MHD_LONG_LONG_PRINTF is deprecated, use MHD_UNSIGNED_LONG
399#define MHD_HTTP_REQUESTED_RANGE_NOT_SATISFIABLE \ 408#define MHD_HTTP_REQUESTED_RANGE_NOT_SATISFIABLE \
400 _MHD_DEPR_IN_MACRO("Value MHD_HTTP_REQUESTED_RANGE_NOT_SATISFIABLE is deprecated, use MHD_HTTP_RANGE_NOT_SATISFIABLE") 416 409 _MHD_DEPR_IN_MACRO("Value MHD_HTTP_REQUESTED_RANGE_NOT_SATISFIABLE is deprecated, use MHD_HTTP_RANGE_NOT_SATISFIABLE") 416
401 410
411/** @deprecated */
412#define MHD_HTTP_UNORDERED_COLLECTION \
413 _MHD_DEPR_IN_MACRO("Value MHD_HTTP_UNORDERED_COLLECTION is deprecated as it was removed from RFC") 425
414
415/** @deprecated */
416#define MHD_HTTP_NO_RESPONSE \
417 _MHD_DEPR_IN_MACRO("Value MHD_HTTP_NO_RESPONSE is deprecated as it is nginx internal code for logs only") 444
418
419
402/** @} */ /* end of group httpcode */ 420/** @} */ /* end of group httpcode */
403 421
404/** 422/**