aboutsummaryrefslogtreecommitdiff
path: root/src/include/microhttpd.h
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2017-02-23 21:21:28 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2017-02-23 21:22:39 +0300
commita466152e0d79fa4cdd8f11ca7388699b95a0af98 (patch)
treec4a8053320b59d6c829e354fff7a29e037539bfc /src/include/microhttpd.h
parent0bf22e855332d35b5be1608cb8c65d3a1cfe93aa (diff)
downloadlibmicrohttpd-a466152e0d79fa4cdd8f11ca7388699b95a0af98.tar.gz
libmicrohttpd-a466152e0d79fa4cdd8f11ca7388699b95a0af98.zip
microhttpd.h: updated HTTP response codes according to HTTP Status Code Registry
Diffstat (limited to 'src/include/microhttpd.h')
-rw-r--r--src/include/microhttpd.h28
1 files changed, 25 insertions, 3 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index e7879496..6ef99c22 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -310,6 +310,9 @@ _MHD_DEPR_MACRO("Macro MHD_LONG_LONG_PRINTF is deprecated, use MHD_UNSIGNED_LONG
310#define MHD_HTTP_RESET_CONTENT 205 310#define MHD_HTTP_RESET_CONTENT 205
311#define MHD_HTTP_PARTIAL_CONTENT 206 311#define MHD_HTTP_PARTIAL_CONTENT 206
312#define MHD_HTTP_MULTI_STATUS 207 312#define MHD_HTTP_MULTI_STATUS 207
313#define MHD_HTTP_ALREADY_REPORTED 208
314
315#define MHD_HTTP_IM_USED 226
313 316
314#define MHD_HTTP_MULTIPLE_CHOICES 300 317#define MHD_HTTP_MULTIPLE_CHOICES 300
315#define MHD_HTTP_MOVED_PERMANENTLY 301 318#define MHD_HTTP_MOVED_PERMANENTLY 301
@@ -337,17 +340,34 @@ _MHD_DEPR_MACRO("Macro MHD_LONG_LONG_PRINTF is deprecated, use MHD_UNSIGNED_LONG
337#define MHD_HTTP_GONE 410 340#define MHD_HTTP_GONE 410
338#define MHD_HTTP_LENGTH_REQUIRED 411 341#define MHD_HTTP_LENGTH_REQUIRED 411
339#define MHD_HTTP_PRECONDITION_FAILED 412 342#define MHD_HTTP_PRECONDITION_FAILED 412
340#define MHD_HTTP_REQUEST_ENTITY_TOO_LARGE 413 343#define MHD_HTTP_PAYLOAD_TOO_LARGE 413
341#define MHD_HTTP_REQUEST_URI_TOO_LONG 414 344/** @deprecated */
345#define MHD_HTTP_REQUEST_ENTITY_TOO_LARGE \
346 _MHD_DEPR_IN_MACRO("Value MHD_HTTP_REQUEST_ENTITY_TOO_LARGE is deprecated, use MHD_HTTP_PAYLOAD_TOO_LARGE") 413
347#define MHD_HTTP_URI_TOO_LONG 414
348/** @deprecated */
349#define MHD_HTTP_REQUEST_URI_TOO_LONG \
350 _MHD_DEPR_IN_MACRO("Value MHD_HTTP_REQUEST_URI_TOO_LONG is deprecated, use MHD_HTTP_URI_TOO_LONG") 414
342#define MHD_HTTP_UNSUPPORTED_MEDIA_TYPE 415 351#define MHD_HTTP_UNSUPPORTED_MEDIA_TYPE 415
343#define MHD_HTTP_REQUESTED_RANGE_NOT_SATISFIABLE 416 352#define MHD_HTTP_RANGE_NOT_SATISFIABLE 416
353/** @deprecated */
354#define MHD_HTTP_REQUESTED_RANGE_NOT_SATISFIABLE \
355 _MHD_DEPR_IN_MACRO("Value MHD_HTTP_REQUESTED_RANGE_NOT_SATISFIABLE is deprecated, use MHD_HTTP_RANGE_NOT_SATISFIABLE") 416
344#define MHD_HTTP_EXPECTATION_FAILED 417 356#define MHD_HTTP_EXPECTATION_FAILED 417
357
358#define MHD_HTTP_MISDIRECTED_REQUEST 421
345#define MHD_HTTP_UNPROCESSABLE_ENTITY 422 359#define MHD_HTTP_UNPROCESSABLE_ENTITY 422
346#define MHD_HTTP_LOCKED 423 360#define MHD_HTTP_LOCKED 423
347#define MHD_HTTP_FAILED_DEPENDENCY 424 361#define MHD_HTTP_FAILED_DEPENDENCY 424
348#define MHD_HTTP_UNORDERED_COLLECTION 425 362#define MHD_HTTP_UNORDERED_COLLECTION 425
349#define MHD_HTTP_UPGRADE_REQUIRED 426 363#define MHD_HTTP_UPGRADE_REQUIRED 426
364
365#define MHD_HTTP_PRECONDITION_REQUIRED 428
366#define MHD_HTTP_TOO_MANY_REQUESTS 429
367#define MHD_HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE 431
368
350#define MHD_HTTP_NO_RESPONSE 444 369#define MHD_HTTP_NO_RESPONSE 444
370
351#define MHD_HTTP_RETRY_WITH 449 371#define MHD_HTTP_RETRY_WITH 449
352#define MHD_HTTP_BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS 450 372#define MHD_HTTP_BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS 450
353#define MHD_HTTP_UNAVAILABLE_FOR_LEGAL_REASONS 451 373#define MHD_HTTP_UNAVAILABLE_FOR_LEGAL_REASONS 451
@@ -360,8 +380,10 @@ _MHD_DEPR_MACRO("Macro MHD_LONG_LONG_PRINTF is deprecated, use MHD_UNSIGNED_LONG
360#define MHD_HTTP_HTTP_VERSION_NOT_SUPPORTED 505 380#define MHD_HTTP_HTTP_VERSION_NOT_SUPPORTED 505
361#define MHD_HTTP_VARIANT_ALSO_NEGOTIATES 506 381#define MHD_HTTP_VARIANT_ALSO_NEGOTIATES 506
362#define MHD_HTTP_INSUFFICIENT_STORAGE 507 382#define MHD_HTTP_INSUFFICIENT_STORAGE 507
383#define MHD_HTTP_LOOP_DETECTED 508
363#define MHD_HTTP_BANDWIDTH_LIMIT_EXCEEDED 509 384#define MHD_HTTP_BANDWIDTH_LIMIT_EXCEEDED 509
364#define MHD_HTTP_NOT_EXTENDED 510 385#define MHD_HTTP_NOT_EXTENDED 510
386#define MHD_HTTP_NETWORK_AUTHENTICATION_REQUIRED 511
365 387
366/** @} */ /* end of group httpcode */ 388/** @} */ /* end of group httpcode */
367 389