GNU libmicrohttpd  0.9.29
HTTP response codes.

Macros

#define MHD_HTTP_CONTINUE   100
 
#define MHD_HTTP_SWITCHING_PROTOCOLS   101
 
#define MHD_HTTP_PROCESSING   102
 
#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_METHOD_NOT_ACCEPTABLE   _MHD_DEPR_IN_MACRO("Value MHD_HTTP_METHOD_NOT_ACCEPTABLE is deprecated, use 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_PAYLOAD_TOO_LARGE   413
 
#define MHD_HTTP_REQUEST_ENTITY_TOO_LARGE   _MHD_DEPR_IN_MACRO("Value MHD_HTTP_REQUEST_ENTITY_TOO_LARGE is deprecated, use MHD_HTTP_PAYLOAD_TOO_LARGE") 413
 
#define MHD_HTTP_URI_TOO_LONG   414
 
#define MHD_HTTP_REQUEST_URI_TOO_LONG   _MHD_DEPR_IN_MACRO("Value MHD_HTTP_REQUEST_URI_TOO_LONG is deprecated, use MHD_HTTP_URI_TOO_LONG") 414
 
#define MHD_HTTP_UNSUPPORTED_MEDIA_TYPE   415
 
#define MHD_HTTP_RANGE_NOT_SATISFIABLE   416
 
#define MHD_HTTP_REQUESTED_RANGE_NOT_SATISFIABLE   _MHD_DEPR_IN_MACRO("Value MHD_HTTP_REQUESTED_RANGE_NOT_SATISFIABLE is deprecated, use MHD_HTTP_RANGE_NOT_SATISFIABLE") 416
 
#define MHD_HTTP_EXPECTATION_FAILED   417
 
#define MHD_HTTP_MISDIRECTED_REQUEST   421
 
#define MHD_HTTP_UNPROCESSABLE_ENTITY   422
 
#define MHD_HTTP_LOCKED   423
 
#define MHD_HTTP_FAILED_DEPENDENCY   424
 
#define MHD_HTTP_UNORDERED_COLLECTION   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_NO_RESPONSE   444
 
#define MHD_HTTP_RETRY_WITH   449
 
#define MHD_HTTP_BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS   450
 
#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_BANDWIDTH_LIMIT_EXCEEDED   509
 
#define MHD_HTTP_NOT_EXTENDED   510
 
#define MHD_HTTP_NETWORK_AUTHENTICATION_REQUIRED   511
 

Detailed Description

These are the status codes defined for HTTP responses.

Macro Definition Documentation

◆ MHD_HTTP_ACCEPTED

#define MHD_HTTP_ACCEPTED   202

Definition at line 309 of file microhttpd.h.

◆ MHD_HTTP_ALREADY_REPORTED

#define MHD_HTTP_ALREADY_REPORTED   208

Definition at line 315 of file microhttpd.h.

◆ MHD_HTTP_BAD_GATEWAY

#define MHD_HTTP_BAD_GATEWAY   502

Definition at line 379 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 386 of file microhttpd.h.

◆ MHD_HTTP_BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS

#define MHD_HTTP_BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS   450

Definition at line 374 of file microhttpd.h.

◆ MHD_HTTP_CONFLICT

#define MHD_HTTP_CONFLICT   409

Definition at line 341 of file microhttpd.h.

◆ MHD_HTTP_CONTINUE

#define MHD_HTTP_CONTINUE   100

Definition at line 303 of file microhttpd.h.

◆ MHD_HTTP_CREATED

#define MHD_HTTP_CREATED   201

Definition at line 308 of file microhttpd.h.

◆ MHD_HTTP_EXPECTATION_FAILED

#define MHD_HTTP_EXPECTATION_FAILED   417

Definition at line 358 of file microhttpd.h.

◆ MHD_HTTP_FAILED_DEPENDENCY

#define MHD_HTTP_FAILED_DEPENDENCY   424

Definition at line 363 of file microhttpd.h.

◆ MHD_HTTP_FORBIDDEN

#define MHD_HTTP_FORBIDDEN   403

Definition at line 332 of file microhttpd.h.

◆ MHD_HTTP_FOUND

#define MHD_HTTP_FOUND   302

Definition at line 321 of file microhttpd.h.

◆ MHD_HTTP_GATEWAY_TIMEOUT

#define MHD_HTTP_GATEWAY_TIMEOUT   504

Definition at line 381 of file microhttpd.h.

◆ MHD_HTTP_GONE

#define MHD_HTTP_GONE   410

Definition at line 342 of file microhttpd.h.

◆ MHD_HTTP_HTTP_VERSION_NOT_SUPPORTED

#define MHD_HTTP_HTTP_VERSION_NOT_SUPPORTED   505

Definition at line 382 of file microhttpd.h.

◆ MHD_HTTP_IM_USED

#define MHD_HTTP_IM_USED   226

Definition at line 317 of file microhttpd.h.

◆ MHD_HTTP_INSUFFICIENT_STORAGE

#define MHD_HTTP_INSUFFICIENT_STORAGE   507

Definition at line 384 of file microhttpd.h.

◆ MHD_HTTP_INTERNAL_SERVER_ERROR

#define MHD_HTTP_INTERNAL_SERVER_ERROR   500

Definition at line 377 of file microhttpd.h.

Referenced by MHD_connection_update_event_loop_info().

◆ MHD_HTTP_LENGTH_REQUIRED

#define MHD_HTTP_LENGTH_REQUIRED   411

Definition at line 343 of file microhttpd.h.

◆ MHD_HTTP_LOCKED

#define MHD_HTTP_LOCKED   423

Definition at line 362 of file microhttpd.h.

◆ MHD_HTTP_LOOP_DETECTED

#define MHD_HTTP_LOOP_DETECTED   508

Definition at line 385 of file microhttpd.h.

◆ MHD_HTTP_METHOD_NOT_ACCEPTABLE

#define MHD_HTTP_METHOD_NOT_ACCEPTABLE   _MHD_DEPR_IN_MACRO("Value MHD_HTTP_METHOD_NOT_ACCEPTABLE is deprecated, use MHD_HTTP_NOT_ACCEPTABLE") 406

Definition at line 337 of file microhttpd.h.

◆ MHD_HTTP_METHOD_NOT_ALLOWED

#define MHD_HTTP_METHOD_NOT_ALLOWED   405

Definition at line 334 of file microhttpd.h.

◆ MHD_HTTP_MISDIRECTED_REQUEST

#define MHD_HTTP_MISDIRECTED_REQUEST   421

Definition at line 360 of file microhttpd.h.

◆ MHD_HTTP_MOVED_PERMANENTLY

#define MHD_HTTP_MOVED_PERMANENTLY   301

Definition at line 320 of file microhttpd.h.

◆ MHD_HTTP_MULTI_STATUS

#define MHD_HTTP_MULTI_STATUS   207

Definition at line 314 of file microhttpd.h.

◆ MHD_HTTP_MULTIPLE_CHOICES

#define MHD_HTTP_MULTIPLE_CHOICES   300

Definition at line 319 of file microhttpd.h.

◆ MHD_HTTP_NETWORK_AUTHENTICATION_REQUIRED

#define MHD_HTTP_NETWORK_AUTHENTICATION_REQUIRED   511

Definition at line 388 of file microhttpd.h.

◆ MHD_HTTP_NO_CONTENT

#define MHD_HTTP_NO_CONTENT   204

Definition at line 311 of file microhttpd.h.

Referenced by build_header_response(), and MHD_queue_response().

◆ MHD_HTTP_NO_RESPONSE

#define MHD_HTTP_NO_RESPONSE   444

Definition at line 371 of file microhttpd.h.

◆ MHD_HTTP_NON_AUTHORITATIVE_INFORMATION

#define MHD_HTTP_NON_AUTHORITATIVE_INFORMATION   203

Definition at line 310 of file microhttpd.h.

◆ MHD_HTTP_NOT_ACCEPTABLE

#define MHD_HTTP_NOT_ACCEPTABLE   406

Definition at line 335 of file microhttpd.h.

◆ MHD_HTTP_NOT_EXTENDED

#define MHD_HTTP_NOT_EXTENDED   510

Definition at line 387 of file microhttpd.h.

◆ MHD_HTTP_NOT_FOUND

#define MHD_HTTP_NOT_FOUND   404

Definition at line 333 of file microhttpd.h.

◆ MHD_HTTP_NOT_IMPLEMENTED

#define MHD_HTTP_NOT_IMPLEMENTED   501

Definition at line 378 of file microhttpd.h.

◆ MHD_HTTP_NOT_MODIFIED

#define MHD_HTTP_NOT_MODIFIED   304

Definition at line 323 of file microhttpd.h.

Referenced by build_header_response(), and MHD_queue_response().

◆ MHD_HTTP_OK

#define MHD_HTTP_OK   200

Definition at line 307 of file microhttpd.h.

Referenced by build_header_response(), and MHD_queue_response().

◆ MHD_HTTP_PARTIAL_CONTENT

#define MHD_HTTP_PARTIAL_CONTENT   206

Definition at line 313 of file microhttpd.h.

◆ MHD_HTTP_PAYLOAD_TOO_LARGE

#define MHD_HTTP_PAYLOAD_TOO_LARGE   413

Definition at line 345 of file microhttpd.h.

◆ MHD_HTTP_PAYMENT_REQUIRED

#define MHD_HTTP_PAYMENT_REQUIRED   402

Definition at line 331 of file microhttpd.h.

◆ MHD_HTTP_PERMANENT_REDIRECT

#define MHD_HTTP_PERMANENT_REDIRECT   308

Definition at line 327 of file microhttpd.h.

◆ MHD_HTTP_PRECONDITION_FAILED

#define MHD_HTTP_PRECONDITION_FAILED   412

Definition at line 344 of file microhttpd.h.

◆ MHD_HTTP_PRECONDITION_REQUIRED

#define MHD_HTTP_PRECONDITION_REQUIRED   428

Definition at line 367 of file microhttpd.h.

◆ MHD_HTTP_PROCESSING

#define MHD_HTTP_PROCESSING   102

Definition at line 305 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 339 of file microhttpd.h.

◆ MHD_HTTP_RANGE_NOT_SATISFIABLE

#define MHD_HTTP_RANGE_NOT_SATISFIABLE   416

Definition at line 354 of file microhttpd.h.

◆ MHD_HTTP_REQUEST_ENTITY_TOO_LARGE

#define MHD_HTTP_REQUEST_ENTITY_TOO_LARGE   _MHD_DEPR_IN_MACRO("Value MHD_HTTP_REQUEST_ENTITY_TOO_LARGE is deprecated, use MHD_HTTP_PAYLOAD_TOO_LARGE") 413

Definition at line 347 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 340 of file microhttpd.h.

◆ MHD_HTTP_REQUEST_URI_TOO_LONG

#define MHD_HTTP_REQUEST_URI_TOO_LONG   _MHD_DEPR_IN_MACRO("Value MHD_HTTP_REQUEST_URI_TOO_LONG is deprecated, use MHD_HTTP_URI_TOO_LONG") 414

Definition at line 351 of file microhttpd.h.

◆ MHD_HTTP_REQUESTED_RANGE_NOT_SATISFIABLE

#define MHD_HTTP_REQUESTED_RANGE_NOT_SATISFIABLE   _MHD_DEPR_IN_MACRO("Value MHD_HTTP_REQUESTED_RANGE_NOT_SATISFIABLE is deprecated, use MHD_HTTP_RANGE_NOT_SATISFIABLE") 416

Definition at line 356 of file microhttpd.h.

◆ MHD_HTTP_RESET_CONTENT

#define MHD_HTTP_RESET_CONTENT   205

Definition at line 312 of file microhttpd.h.

◆ MHD_HTTP_RETRY_WITH

#define MHD_HTTP_RETRY_WITH   449

Definition at line 373 of file microhttpd.h.

◆ MHD_HTTP_SEE_OTHER

#define MHD_HTTP_SEE_OTHER   303

Definition at line 322 of file microhttpd.h.

◆ MHD_HTTP_SERVICE_UNAVAILABLE

#define MHD_HTTP_SERVICE_UNAVAILABLE   503

Definition at line 380 of file microhttpd.h.

◆ MHD_HTTP_SWITCH_PROXY

#define MHD_HTTP_SWITCH_PROXY   306

Definition at line 325 of file microhttpd.h.

◆ MHD_HTTP_SWITCHING_PROTOCOLS

#define MHD_HTTP_SWITCHING_PROTOCOLS   101

Definition at line 304 of file microhttpd.h.

Referenced by MHD_queue_response().

◆ MHD_HTTP_TEMPORARY_REDIRECT

#define MHD_HTTP_TEMPORARY_REDIRECT   307

Definition at line 326 of file microhttpd.h.

◆ MHD_HTTP_TOO_MANY_REQUESTS

#define MHD_HTTP_TOO_MANY_REQUESTS   429

Definition at line 368 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 375 of file microhttpd.h.

◆ MHD_HTTP_UNORDERED_COLLECTION

#define MHD_HTTP_UNORDERED_COLLECTION   425

Definition at line 364 of file microhttpd.h.

◆ MHD_HTTP_UNPROCESSABLE_ENTITY

#define MHD_HTTP_UNPROCESSABLE_ENTITY   422

Definition at line 361 of file microhttpd.h.

◆ MHD_HTTP_UNSUPPORTED_MEDIA_TYPE

#define MHD_HTTP_UNSUPPORTED_MEDIA_TYPE   415

Definition at line 353 of file microhttpd.h.

◆ MHD_HTTP_UPGRADE_REQUIRED

#define MHD_HTTP_UPGRADE_REQUIRED   426

Definition at line 365 of file microhttpd.h.

◆ MHD_HTTP_URI_TOO_LONG

#define MHD_HTTP_URI_TOO_LONG   414

Definition at line 349 of file microhttpd.h.

Referenced by get_next_header_line(), and MHD_connection_update_event_loop_info().

◆ MHD_HTTP_USE_PROXY

#define MHD_HTTP_USE_PROXY   305

Definition at line 324 of file microhttpd.h.

◆ MHD_HTTP_VARIANT_ALSO_NEGOTIATES

#define MHD_HTTP_VARIANT_ALSO_NEGOTIATES   506

Definition at line 383 of file microhttpd.h.