GNU libmicrohttpd 1.0.2
Loading...
Searching...
No Matches
HTTP response codes.

Macros

#define MHD_HTTP_CONTINUE   100
#define MHD_HTTP_SWITCHING_PROTOCOLS   101
#define MHD_HTTP_PROCESSING   102
#define MHD_HTTP_EARLY_HINTS   103
#define MHD_HTTP_OK   200
#define MHD_HTTP_CREATED   201
#define MHD_HTTP_ACCEPTED   202
#define MHD_HTTP_NON_AUTHORITATIVE_INFORMATION   203
#define MHD_HTTP_NO_CONTENT   204
#define MHD_HTTP_RESET_CONTENT   205
#define MHD_HTTP_PARTIAL_CONTENT   206
#define MHD_HTTP_MULTI_STATUS   207
#define MHD_HTTP_ALREADY_REPORTED   208
#define MHD_HTTP_IM_USED   226
#define MHD_HTTP_MULTIPLE_CHOICES   300
#define MHD_HTTP_MOVED_PERMANENTLY   301
#define MHD_HTTP_FOUND   302
#define MHD_HTTP_SEE_OTHER   303
#define MHD_HTTP_NOT_MODIFIED   304
#define MHD_HTTP_USE_PROXY   305
#define MHD_HTTP_SWITCH_PROXY   306
#define MHD_HTTP_TEMPORARY_REDIRECT   307
#define MHD_HTTP_PERMANENT_REDIRECT   308
#define MHD_HTTP_BAD_REQUEST   400
#define MHD_HTTP_UNAUTHORIZED   401
#define MHD_HTTP_PAYMENT_REQUIRED   402
#define MHD_HTTP_FORBIDDEN   403
#define MHD_HTTP_NOT_FOUND   404
#define MHD_HTTP_METHOD_NOT_ALLOWED   405
#define MHD_HTTP_NOT_ACCEPTABLE   406
#define MHD_HTTP_PROXY_AUTHENTICATION_REQUIRED   407
#define MHD_HTTP_REQUEST_TIMEOUT   408
#define MHD_HTTP_CONFLICT   409
#define MHD_HTTP_GONE   410
#define MHD_HTTP_LENGTH_REQUIRED   411
#define MHD_HTTP_PRECONDITION_FAILED   412
#define MHD_HTTP_CONTENT_TOO_LARGE   413
#define MHD_HTTP_URI_TOO_LONG   414
#define MHD_HTTP_UNSUPPORTED_MEDIA_TYPE   415
#define MHD_HTTP_RANGE_NOT_SATISFIABLE   416
#define MHD_HTTP_EXPECTATION_FAILED   417
#define MHD_HTTP_MISDIRECTED_REQUEST   421
#define MHD_HTTP_UNPROCESSABLE_CONTENT   422
#define MHD_HTTP_LOCKED   423
#define MHD_HTTP_FAILED_DEPENDENCY   424
#define MHD_HTTP_TOO_EARLY   425
#define MHD_HTTP_UPGRADE_REQUIRED   426
#define MHD_HTTP_PRECONDITION_REQUIRED   428
#define MHD_HTTP_TOO_MANY_REQUESTS   429
#define MHD_HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE   431
#define MHD_HTTP_UNAVAILABLE_FOR_LEGAL_REASONS   451
#define MHD_HTTP_INTERNAL_SERVER_ERROR   500
#define MHD_HTTP_NOT_IMPLEMENTED   501
#define MHD_HTTP_BAD_GATEWAY   502
#define MHD_HTTP_SERVICE_UNAVAILABLE   503
#define MHD_HTTP_GATEWAY_TIMEOUT   504
#define MHD_HTTP_HTTP_VERSION_NOT_SUPPORTED   505
#define MHD_HTTP_VARIANT_ALSO_NEGOTIATES   506
#define MHD_HTTP_INSUFFICIENT_STORAGE   507
#define MHD_HTTP_LOOP_DETECTED   508
#define MHD_HTTP_NOT_EXTENDED   510
#define MHD_HTTP_NETWORK_AUTHENTICATION_REQUIRED   511
#define MHD_HTTP_RETRY_WITH   449
#define MHD_HTTP_BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS   450
#define MHD_HTTP_BANDWIDTH_LIMIT_EXCEEDED   509
#define MHD_HTTP_METHOD_NOT_ACCEPTABLE
#define MHD_HTTP_REQUEST_ENTITY_TOO_LARGE
#define MHD_HTTP_PAYLOAD_TOO_LARGE
#define MHD_HTTP_REQUEST_URI_TOO_LONG
#define MHD_HTTP_REQUESTED_RANGE_NOT_SATISFIABLE
#define MHD_HTTP_UNPROCESSABLE_ENTITY
#define MHD_HTTP_UNORDERED_COLLECTION
#define MHD_HTTP_NO_RESPONSE

Detailed Description

These are the status codes defined for HTTP responses. See: https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml Registry export date: 2023-09-29

Macro Definition Documentation

◆ MHD_HTTP_ACCEPTED

#define MHD_HTTP_ACCEPTED   202

Definition at line 354 of file microhttpd.h.

◆ MHD_HTTP_ALREADY_REPORTED

#define MHD_HTTP_ALREADY_REPORTED   208

Definition at line 366 of file microhttpd.h.

◆ MHD_HTTP_BAD_GATEWAY

#define MHD_HTTP_BAD_GATEWAY   502

Definition at line 457 of file microhttpd.h.

◆ MHD_HTTP_BAD_REQUEST

#define MHD_HTTP_BAD_REQUEST   400

◆ MHD_HTTP_BANDWIDTH_LIMIT_EXCEEDED

#define MHD_HTTP_BANDWIDTH_LIMIT_EXCEEDED   509

Definition at line 485 of file microhttpd.h.

◆ MHD_HTTP_BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS

#define MHD_HTTP_BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS   450

Definition at line 482 of file microhttpd.h.

◆ MHD_HTTP_CONFLICT

#define MHD_HTTP_CONFLICT   409

Definition at line 409 of file microhttpd.h.

◆ MHD_HTTP_CONTENT_TOO_LARGE

#define MHD_HTTP_CONTENT_TOO_LARGE   413

◆ MHD_HTTP_CONTINUE

#define MHD_HTTP_CONTINUE   100

Definition at line 341 of file microhttpd.h.

◆ MHD_HTTP_CREATED

#define MHD_HTTP_CREATED   201

Definition at line 352 of file microhttpd.h.

◆ MHD_HTTP_EARLY_HINTS

#define MHD_HTTP_EARLY_HINTS   103

Definition at line 347 of file microhttpd.h.

◆ MHD_HTTP_EXPECTATION_FAILED

#define MHD_HTTP_EXPECTATION_FAILED   417

Definition at line 425 of file microhttpd.h.

◆ MHD_HTTP_FAILED_DEPENDENCY

#define MHD_HTTP_FAILED_DEPENDENCY   424

Definition at line 435 of file microhttpd.h.

◆ MHD_HTTP_FORBIDDEN

#define MHD_HTTP_FORBIDDEN   403

Definition at line 397 of file microhttpd.h.

◆ MHD_HTTP_FOUND

#define MHD_HTTP_FOUND   302

Definition at line 376 of file microhttpd.h.

◆ MHD_HTTP_GATEWAY_TIMEOUT

#define MHD_HTTP_GATEWAY_TIMEOUT   504

Definition at line 461 of file microhttpd.h.

◆ MHD_HTTP_GONE

#define MHD_HTTP_GONE   410

Definition at line 411 of file microhttpd.h.

◆ MHD_HTTP_HTTP_VERSION_NOT_SUPPORTED

#define MHD_HTTP_HTTP_VERSION_NOT_SUPPORTED   505

Definition at line 463 of file microhttpd.h.

Referenced by parse_http_version().

◆ MHD_HTTP_IM_USED

#define MHD_HTTP_IM_USED   226

Definition at line 369 of file microhttpd.h.

◆ MHD_HTTP_INSUFFICIENT_STORAGE

#define MHD_HTTP_INSUFFICIENT_STORAGE   507

Definition at line 467 of file microhttpd.h.

◆ MHD_HTTP_INTERNAL_SERVER_ERROR

#define MHD_HTTP_INTERNAL_SERVER_ERROR   500

Definition at line 453 of file microhttpd.h.

Referenced by handle_recv_no_space().

◆ MHD_HTTP_LENGTH_REQUIRED

#define MHD_HTTP_LENGTH_REQUIRED   411

Definition at line 413 of file microhttpd.h.

◆ MHD_HTTP_LOCKED

#define MHD_HTTP_LOCKED   423

Definition at line 433 of file microhttpd.h.

◆ MHD_HTTP_LOOP_DETECTED

#define MHD_HTTP_LOOP_DETECTED   508

Definition at line 469 of file microhttpd.h.

◆ MHD_HTTP_METHOD_NOT_ACCEPTABLE

#define MHD_HTTP_METHOD_NOT_ACCEPTABLE
Value:
"Value MHD_HTTP_METHOD_NOT_ACCEPTABLE is deprecated, use MHD_HTTP_NOT_ACCEPTABLE" \
) 406
#define _MHD_DEPR_IN_MACRO(msg)
Definition microhttpd.h:272

Definition at line 489 of file microhttpd.h.

◆ MHD_HTTP_METHOD_NOT_ALLOWED

#define MHD_HTTP_METHOD_NOT_ALLOWED   405

Definition at line 401 of file microhttpd.h.

◆ MHD_HTTP_MISDIRECTED_REQUEST

#define MHD_HTTP_MISDIRECTED_REQUEST   421

Definition at line 429 of file microhttpd.h.

◆ MHD_HTTP_MOVED_PERMANENTLY

#define MHD_HTTP_MOVED_PERMANENTLY   301

Definition at line 374 of file microhttpd.h.

Referenced by send_redirect_fixed_rq_target().

◆ MHD_HTTP_MULTI_STATUS

#define MHD_HTTP_MULTI_STATUS   207

Definition at line 364 of file microhttpd.h.

◆ MHD_HTTP_MULTIPLE_CHOICES

#define MHD_HTTP_MULTIPLE_CHOICES   300

Definition at line 372 of file microhttpd.h.

◆ MHD_HTTP_NETWORK_AUTHENTICATION_REQUIRED

#define MHD_HTTP_NETWORK_AUTHENTICATION_REQUIRED   511

Definition at line 474 of file microhttpd.h.

◆ MHD_HTTP_NO_CONTENT

#define MHD_HTTP_NO_CONTENT   204

Definition at line 358 of file microhttpd.h.

Referenced by is_reply_body_needed(), and MHD_queue_response().

◆ MHD_HTTP_NO_RESPONSE

#define MHD_HTTP_NO_RESPONSE
Value:
"Value MHD_HTTP_NO_RESPONSE is deprecated as it is nginx internal code for logs only" \
) 444

Definition at line 524 of file microhttpd.h.

◆ MHD_HTTP_NON_AUTHORITATIVE_INFORMATION

#define MHD_HTTP_NON_AUTHORITATIVE_INFORMATION   203

Definition at line 356 of file microhttpd.h.

◆ MHD_HTTP_NOT_ACCEPTABLE

#define MHD_HTTP_NOT_ACCEPTABLE   406

Definition at line 403 of file microhttpd.h.

◆ MHD_HTTP_NOT_EXTENDED

#define MHD_HTTP_NOT_EXTENDED   510

Definition at line 472 of file microhttpd.h.

◆ MHD_HTTP_NOT_FOUND

#define MHD_HTTP_NOT_FOUND   404

Definition at line 399 of file microhttpd.h.

◆ MHD_HTTP_NOT_IMPLEMENTED

#define MHD_HTTP_NOT_IMPLEMENTED   501

Definition at line 455 of file microhttpd.h.

Referenced by get_no_space_err_status_code().

◆ MHD_HTTP_NOT_MODIFIED

#define MHD_HTTP_NOT_MODIFIED   304

Definition at line 380 of file microhttpd.h.

Referenced by is_reply_body_needed(), and MHD_queue_response().

◆ MHD_HTTP_OK

#define MHD_HTTP_OK   200

Definition at line 350 of file microhttpd.h.

Referenced by MHD_queue_response().

◆ MHD_HTTP_PARTIAL_CONTENT

#define MHD_HTTP_PARTIAL_CONTENT   206

Definition at line 362 of file microhttpd.h.

◆ MHD_HTTP_PAYLOAD_TOO_LARGE

#define MHD_HTTP_PAYLOAD_TOO_LARGE
Value:
"Value MHD_HTTP_PAYLOAD_TOO_LARGE is deprecated use MHD_HTTP_CONTENT_TOO_LARGE" \
) 413

Definition at line 499 of file microhttpd.h.

◆ MHD_HTTP_PAYMENT_REQUIRED

#define MHD_HTTP_PAYMENT_REQUIRED   402

Definition at line 395 of file microhttpd.h.

◆ MHD_HTTP_PERMANENT_REDIRECT

#define MHD_HTTP_PERMANENT_REDIRECT   308

Definition at line 388 of file microhttpd.h.

◆ MHD_HTTP_PRECONDITION_FAILED

#define MHD_HTTP_PRECONDITION_FAILED   412

Definition at line 415 of file microhttpd.h.

◆ MHD_HTTP_PRECONDITION_REQUIRED

#define MHD_HTTP_PRECONDITION_REQUIRED   428

Definition at line 442 of file microhttpd.h.

◆ MHD_HTTP_PROCESSING

#define MHD_HTTP_PROCESSING   102

Definition at line 345 of file microhttpd.h.

Referenced by MHD_connection_handle_idle().

◆ MHD_HTTP_PROXY_AUTHENTICATION_REQUIRED

#define MHD_HTTP_PROXY_AUTHENTICATION_REQUIRED   407

Definition at line 405 of file microhttpd.h.

◆ MHD_HTTP_RANGE_NOT_SATISFIABLE

#define MHD_HTTP_RANGE_NOT_SATISFIABLE   416

Definition at line 423 of file microhttpd.h.

◆ MHD_HTTP_REQUEST_ENTITY_TOO_LARGE

#define MHD_HTTP_REQUEST_ENTITY_TOO_LARGE
Value:
"Value MHD_HTTP_REQUEST_ENTITY_TOO_LARGE is deprecated, use MHD_HTTP_CONTENT_TOO_LARGE" \
) 413

Definition at line 494 of file microhttpd.h.

◆ MHD_HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE

#define MHD_HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE   431

◆ MHD_HTTP_REQUEST_TIMEOUT

#define MHD_HTTP_REQUEST_TIMEOUT   408

Definition at line 407 of file microhttpd.h.

◆ MHD_HTTP_REQUEST_URI_TOO_LONG

#define MHD_HTTP_REQUEST_URI_TOO_LONG
Value:
"Value MHD_HTTP_REQUEST_URI_TOO_LONG is deprecated, use MHD_HTTP_URI_TOO_LONG" \
) 414

Definition at line 504 of file microhttpd.h.

◆ MHD_HTTP_REQUESTED_RANGE_NOT_SATISFIABLE

#define MHD_HTTP_REQUESTED_RANGE_NOT_SATISFIABLE
Value:
"Value MHD_HTTP_REQUESTED_RANGE_NOT_SATISFIABLE is deprecated, use MHD_HTTP_RANGE_NOT_SATISFIABLE" \
) 416

Definition at line 509 of file microhttpd.h.

◆ MHD_HTTP_RESET_CONTENT

#define MHD_HTTP_RESET_CONTENT   205

Definition at line 360 of file microhttpd.h.

◆ MHD_HTTP_RETRY_WITH

#define MHD_HTTP_RETRY_WITH   449

Definition at line 479 of file microhttpd.h.

◆ MHD_HTTP_SEE_OTHER

#define MHD_HTTP_SEE_OTHER   303

Definition at line 378 of file microhttpd.h.

◆ MHD_HTTP_SERVICE_UNAVAILABLE

#define MHD_HTTP_SERVICE_UNAVAILABLE   503

Definition at line 459 of file microhttpd.h.

◆ MHD_HTTP_SWITCH_PROXY

#define MHD_HTTP_SWITCH_PROXY   306

Definition at line 384 of file microhttpd.h.

◆ MHD_HTTP_SWITCHING_PROTOCOLS

#define MHD_HTTP_SWITCHING_PROTOCOLS   101

Definition at line 343 of file microhttpd.h.

Referenced by MHD_queue_response().

◆ MHD_HTTP_TEMPORARY_REDIRECT

#define MHD_HTTP_TEMPORARY_REDIRECT   307

Definition at line 386 of file microhttpd.h.

◆ MHD_HTTP_TOO_EARLY

#define MHD_HTTP_TOO_EARLY   425

Definition at line 437 of file microhttpd.h.

◆ MHD_HTTP_TOO_MANY_REQUESTS

#define MHD_HTTP_TOO_MANY_REQUESTS   429

Definition at line 444 of file microhttpd.h.

◆ MHD_HTTP_UNAUTHORIZED

#define MHD_HTTP_UNAUTHORIZED   401

◆ MHD_HTTP_UNAVAILABLE_FOR_LEGAL_REASONS

#define MHD_HTTP_UNAVAILABLE_FOR_LEGAL_REASONS   451

Definition at line 450 of file microhttpd.h.

◆ MHD_HTTP_UNORDERED_COLLECTION

#define MHD_HTTP_UNORDERED_COLLECTION
Value:
"Value MHD_HTTP_UNORDERED_COLLECTION is deprecated as it was removed from RFC" \
) 425

Definition at line 519 of file microhttpd.h.

◆ MHD_HTTP_UNPROCESSABLE_CONTENT

#define MHD_HTTP_UNPROCESSABLE_CONTENT   422

Definition at line 431 of file microhttpd.h.

◆ MHD_HTTP_UNPROCESSABLE_ENTITY

#define MHD_HTTP_UNPROCESSABLE_ENTITY
Value:
"Value MHD_HTTP_UNPROCESSABLE_ENTITY is deprecated, use MHD_HTTP_UNPROCESSABLE_CONTENT" \
) 422

Definition at line 514 of file microhttpd.h.

◆ MHD_HTTP_UNSUPPORTED_MEDIA_TYPE

#define MHD_HTTP_UNSUPPORTED_MEDIA_TYPE   415

Definition at line 421 of file microhttpd.h.

◆ MHD_HTTP_UPGRADE_REQUIRED

#define MHD_HTTP_UPGRADE_REQUIRED   426

Definition at line 439 of file microhttpd.h.

◆ MHD_HTTP_URI_TOO_LONG

#define MHD_HTTP_URI_TOO_LONG   414

Definition at line 419 of file microhttpd.h.

Referenced by get_no_space_err_status_code(), and handle_recv_no_space().

◆ MHD_HTTP_USE_PROXY

#define MHD_HTTP_USE_PROXY   305

Definition at line 382 of file microhttpd.h.

◆ MHD_HTTP_VARIANT_ALSO_NEGOTIATES

#define MHD_HTTP_VARIANT_ALSO_NEGOTIATES   506

Definition at line 465 of file microhttpd.h.