Main Page | Modules | Namespace List | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages | Examples

HTTP Status Codes


Defines

#define RESPONSE_CODES   57
#define HTTP_CONTINUE   100
#define HTTP_SWITCHING_PROTOCOLS   101
#define HTTP_PROCESSING   102
#define HTTP_OK   200
#define HTTP_CREATED   201
#define HTTP_ACCEPTED   202
#define HTTP_NON_AUTHORITATIVE   203
#define HTTP_NO_CONTENT   204
#define HTTP_RESET_CONTENT   205
#define HTTP_PARTIAL_CONTENT   206
#define HTTP_MULTI_STATUS   207
#define HTTP_MULTIPLE_CHOICES   300
#define HTTP_MOVED_PERMANENTLY   301
#define HTTP_MOVED_TEMPORARILY   302
#define HTTP_SEE_OTHER   303
#define HTTP_NOT_MODIFIED   304
#define HTTP_USE_PROXY   305
#define HTTP_TEMPORARY_REDIRECT   307
#define HTTP_BAD_REQUEST   400
#define HTTP_UNAUTHORIZED   401
#define HTTP_PAYMENT_REQUIRED   402
#define HTTP_FORBIDDEN   403
#define HTTP_NOT_FOUND   404
#define HTTP_METHOD_NOT_ALLOWED   405
#define HTTP_NOT_ACCEPTABLE   406
#define HTTP_PROXY_AUTHENTICATION_REQUIRED   407
#define HTTP_REQUEST_TIME_OUT   408
#define HTTP_CONFLICT   409
#define HTTP_GONE   410
#define HTTP_LENGTH_REQUIRED   411
#define HTTP_PRECONDITION_FAILED   412
#define HTTP_REQUEST_ENTITY_TOO_LARGE   413
#define HTTP_REQUEST_URI_TOO_LARGE   414
#define HTTP_UNSUPPORTED_MEDIA_TYPE   415
#define HTTP_RANGE_NOT_SATISFIABLE   416
#define HTTP_EXPECTATION_FAILED   417
#define HTTP_UNPROCESSABLE_ENTITY   422
#define HTTP_LOCKED   423
#define HTTP_FAILED_DEPENDENCY   424
#define HTTP_UPGRADE_REQUIRED   426
#define HTTP_INTERNAL_SERVER_ERROR   500
#define HTTP_NOT_IMPLEMENTED   501
#define HTTP_BAD_GATEWAY   502
#define HTTP_SERVICE_UNAVAILABLE   503
#define HTTP_GATEWAY_TIME_OUT   504
#define HTTP_VERSION_NOT_SUPPORTED   505
#define HTTP_VARIANT_ALSO_VARIES   506
#define HTTP_INSUFFICIENT_STORAGE   507
#define HTTP_NOT_EXTENDED   510
#define ap_is_HTTP_INFO(x)   (((x) >= 100)&&((x) < 200))
#define ap_is_HTTP_SUCCESS(x)   (((x) >= 200)&&((x) < 300))
#define ap_is_HTTP_REDIRECT(x)   (((x) >= 300)&&((x) < 400))
#define ap_is_HTTP_ERROR(x)   (((x) >= 400)&&((x) < 600))
#define ap_is_HTTP_CLIENT_ERROR(x)   (((x) >= 400)&&((x) < 500))
#define ap_is_HTTP_SERVER_ERROR(x)   (((x) >= 500)&&((x) < 600))
#define ap_status_drops_connection(x)

Define Documentation

#define ap_is_HTTP_CLIENT_ERROR x   )     (((x) >= 400)&&((x) < 500))
 

is the status code a client error

Definition at line 477 of file httpd.h.

#define ap_is_HTTP_ERROR x   )     (((x) >= 400)&&((x) < 600))
 

is the status code a error (client or server)

Definition at line 475 of file httpd.h.

Referenced by expires_insert_filter().

#define ap_is_HTTP_INFO x   )     (((x) >= 100)&&((x) < 200))
 

is the status code informational

Definition at line 469 of file httpd.h.

#define ap_is_HTTP_REDIRECT x   )     (((x) >= 300)&&((x) < 400))
 

is the status code a redirect

Definition at line 473 of file httpd.h.

Referenced by add_redirect_internal(), asis_handler(), cmd_rewriterule_setflag(), fixup_dir(), fixup_redir(), hook_fixup(), hook_uri2file(), include_cgi(), make_autoindex_entry(), proxy_handler(), and translate_alias_redir().

#define ap_is_HTTP_SERVER_ERROR x   )     (((x) >= 500)&&((x) < 600))
 

is the status code a server error

Definition at line 479 of file httpd.h.

Referenced by dav_fs_copymove_walker(), dav_lock_walker(), dav_validate_walker(), and isapi_handler().

#define ap_is_HTTP_SUCCESS x   )     (((x) >= 200)&&((x) < 300))
 

is the status code OK ?

Definition at line 471 of file httpd.h.

Referenced by AP_DECLARE(), and make_autoindex_entry().

#define ap_status_drops_connection x   ) 
 

Value:

should the status code drop the connection

Definition at line 482 of file httpd.h.

Referenced by AP_DECLARE(), and APR_HOOK_STRUCT().

#define HTTP_ACCEPTED   202
 

Definition at line 423 of file httpd.h.

#define HTTP_BAD_GATEWAY   502
 

Definition at line 460 of file httpd.h.

Referenced by ap_proxy_connect_handler(), ap_proxy_ftp_handler(), ap_proxy_http_create_connection(), ap_proxy_http_determine_connection(), ap_proxy_http_process_response(), DAV_DECLARE(), dav_method_bind(), dav_method_copymove(), ftp_get_PWD(), ftp_set_TYPE(), get_canned_error_string(), and proxy_handler().

#define HTTP_BAD_REQUEST   400
 

Definition at line 436 of file httpd.h.

Referenced by AP_CORE_DECLARE(), AP_DECLARE(), AP_DECLARE_NONSTD(), ap_proxy_connect_handler(), ap_proxy_ftp_canon(), ap_proxy_ftp_handler(), ap_proxy_http_canon(), ap_proxy_http_determine_connection(), ap_read_request(), authenticate_digest_user(), DAV_DECLARE(), dav_fs_get_resource(), dav_fs_parse_locktoken(), dav_gen_supported_live_props(), dav_gen_supported_methods(), dav_gen_supported_reports(), dav_get_direct_resource(), dav_handler(), dav_method_bind(), dav_method_checkin(), dav_method_checkout(), dav_method_copymove(), dav_method_delete(), dav_method_label(), dav_method_lock(), dav_method_make_workspace(), dav_method_merge(), dav_method_options(), dav_method_propfind(), dav_method_proppatch(), dav_method_put(), dav_method_report(), dav_method_unlock(), dav_method_update(), dav_method_vsn_control(), dav_process_if_header(), dav_validate_resource_state(), fix_hostname(), get_canned_error_string(), hook_fixup(), hook_uri2file(), process_mkcol_body(), proxy_fixup(), proxy_handler(), ssl_hook_ReadReq(), ssl_io_filter_connect(), and ssl_io_filter_error().

#define HTTP_CONFLICT   409
 

Definition at line 445 of file httpd.h.

Referenced by DAV_DECLARE_NONSTD(), dav_fs_create_collection(), dav_fs_patch_validate(), dav_label_walker(), dav_method_checkin(), dav_method_checkout(), dav_method_make_activity(), dav_method_make_workspace(), dav_method_put(), dav_method_uncheckout(), dav_method_update(), and dav_method_vsn_control().

#define HTTP_CONTINUE   100
 

Definition at line 418 of file httpd.h.

Referenced by ap_proxy_http_process_response().

#define HTTP_CREATED   201
 

Definition at line 422 of file httpd.h.

Referenced by dav_created().

#define HTTP_EXPECTATION_FAILED   417
 

Definition at line 453 of file httpd.h.

Referenced by ap_read_request(), and get_canned_error_string().

#define HTTP_FAILED_DEPENDENCY   424
 

Definition at line 456 of file httpd.h.

Referenced by dav_failed_proppatch(), and get_canned_error_string().

#define HTTP_FORBIDDEN   403
 

Definition at line 439 of file httpd.h.

Referenced by add_cern_meta_data(), AP_DECLARE_NONSTD(), ap_proxy_connect_handler(), ap_proxy_ftp_handler(), ap_proxy_http_determine_connection(), asis_handler(), cgi_handler(), cgid_handler(), check_dir_access(), dav_fs_copymove_walker(), dav_fs_create_collection(), dav_fs_delete_walker(), dav_fs_remove_resource(), dav_method_bind(), dav_method_copymove(), dav_method_make_activity(), dav_method_propfind(), dav_method_put(), dav_validate_resource_state(), default_handler(), get_canned_error_string(), handle_autoindex(), hook_fixup(), hook_uri2file(), index_directory(), isapi_handler(), proxy_handler(), read_type_map(), read_types_multi(), resolve_symlink(), ssl_hook_Access(), ssl_hook_Auth(), and ssl_hook_UserCheck().

#define HTTP_GATEWAY_TIME_OUT   504
 

Definition at line 462 of file httpd.h.

Referenced by get_canned_error_string().

#define HTTP_GONE   410
 

Definition at line 446 of file httpd.h.

Referenced by add_redirect_internal(), get_canned_error_string(), hook_fixup(), and hook_uri2file().

#define HTTP_INSUFFICIENT_STORAGE   507
 

Definition at line 465 of file httpd.h.

Referenced by dav_fs_create_collection(), dav_fs_write_stream(), and get_canned_error_string().

#define HTTP_INTERNAL_SERVER_ERROR   500
 

Definition at line 458 of file httpd.h.

Referenced by AP_CORE_DECLARE(), ap_create_scoreboard(), AP_DECLARE(), ap_proxy_connect_handler(), ap_proxy_ftp_handler(), ap_proxy_http_create_connection(), APR_HOOK_STRUCT(), APR_OPTIONAL_FN_TYPE(), asis_handler(), auth_ldap_post_config(), authenticate_digest_user(), beos_pre_config(), cgi_handler(), config_log_transaction(), connect_to_daemon(), dav_can_auto_checkout(), DAV_DECLARE(), DAV_DECLARE_NONSTD(), dav_fs_add_locknull_state(), dav_fs_close_stream(), dav_fs_copy_resource(), dav_fs_copymove_file(), dav_fs_copymove_state(), dav_fs_copymoveset(), dav_fs_dbm_error(), dav_fs_deleteset(), dav_fs_dir_file_name(), dav_fs_get_locks(), dav_fs_internal_walk(), dav_fs_load_lock_record(), dav_fs_load_locknull_list(), dav_fs_move_resource(), dav_fs_open_lockdb(), dav_fs_patch_exec(), dav_fs_patch_rollback(), dav_fs_really_open_lockdb(), dav_fs_resolve(), dav_fs_save_lock_record(), dav_fs_save_locknull_list(), dav_fs_seek_stream(), dav_fs_write_stream(), dav_get_direct_resource(), dav_inherit_locks(), dav_method_proppatch(), dav_method_put(), dav_propdb_open(), dav_really_open_db(), dav_validate_resource_state(), find_code_page(), fixup_redir(), fsmagic(), handler_redirect(), imap_handler_internal(), imap_reply(), include_cmd(), internal_internal_redirect(), isapi_handler(), leader_pre_config(), log_init(), magic_find_ct(), magic_process(), magic_rsl_to_request(), mime_post_config(), mmap_handler(), nwssl_post_config(), perchild_pre_config(), post_config(), prefork_pre_config(), read_type_map(), scan_meta_file(), send_response_header(), sendfile_handler(), set_error_document(), set_expiration_fields(), ssl_init_Module(), status_handler(), unique_id_global_init(), and worker_pre_config().

#define HTTP_LENGTH_REQUIRED   411
 

Definition at line 447 of file httpd.h.

Referenced by get_canned_error_string().

#define HTTP_LOCKED   423
 

Definition at line 455 of file httpd.h.

Referenced by dav_validate_resource_state(), and get_canned_error_string().

#define HTTP_METHOD_NOT_ALLOWED   405
 

Definition at line 441 of file httpd.h.

Referenced by dav_method_baseline_control(), dav_method_copymove(), dav_method_mkcol(), default_handler(), get_canned_error_string(), handle_map_file(), and ssl_hook_Access().

#define HTTP_MOVED_PERMANENTLY   301
 

Definition at line 430 of file httpd.h.

Referenced by add_redirect_internal(), cache_save_filter(), check_speling(), cmd_rewriterule_setflag(), fixup_dir(), get_canned_error_string(), proxy_handler(), and proxy_needsdomain().

#define HTTP_MOVED_TEMPORARILY   302
 

Definition at line 431 of file httpd.h.

Referenced by add_redirect_internal(), AP_DECLARE(), cgi_handler(), cgid_handler(), cmd_rewriterule(), cmd_rewriterule_setflag(), get_canned_error_string(), hook_fixup(), hook_uri2file(), imap_reply(), ServerSupportFunction(), and translate_userdir().

#define HTTP_MULTI_STATUS   207
 

Definition at line 428 of file httpd.h.

Referenced by dav_fs_copymove_resource(), dav_fs_remove_resource(), dav_method_label(), dav_method_propfind(), dav_method_proppatch(), and dav_method_search().

#define HTTP_MULTIPLE_CHOICES   300
 

Definition at line 429 of file httpd.h.

Referenced by cache_save_filter(), check_speling(), do_negotiation(), and get_canned_error_string().

#define HTTP_NO_CONTENT   204
 

Definition at line 425 of file httpd.h.

Referenced by ap_proxy_http_process_response(), APR_HOOK_STRUCT(), dav_created(), dav_method_delete(), dav_method_unlock(), and imap_reply().

#define HTTP_NON_AUTHORITATIVE   203
 

Definition at line 424 of file httpd.h.

Referenced by cache_save_filter().

#define HTTP_NOT_ACCEPTABLE   406
 

Definition at line 442 of file httpd.h.

Referenced by do_negotiation(), fixup_dir(), and get_canned_error_string().

#define HTTP_NOT_EXTENDED   510
 

Definition at line 466 of file httpd.h.

Referenced by get_canned_error_string().

#define HTTP_NOT_FOUND   404
 

Definition at line 440 of file httpd.h.

Referenced by action_handler(), AP_DECLARE(), ap_proxy_ftp_handler(), asis_handler(), cgi_handler(), cgid_handler(), dav_fs_walker(), dav_get_resource(), dav_method_bind(), dav_method_checkin(), dav_method_checkout(), dav_method_copymove(), dav_method_delete(), dav_method_get(), dav_method_label(), dav_method_merge(), dav_method_propfind(), dav_method_proppatch(), dav_method_report(), dav_method_search(), dav_method_uncheckout(), dav_method_update(), default_handler(), fixup_dir(), get_canned_error_string(), imap_handler_internal(), isapi_handler(), and read_types_multi().

#define HTTP_NOT_IMPLEMENTED   501
 

Definition at line 459 of file httpd.h.

Referenced by ap_proxy_ftp_handler(), default_handler(), get_canned_error_string(), and process_mkcol_body().

#define HTTP_NOT_MODIFIED   304
 

Definition at line 433 of file httpd.h.

Referenced by AP_CORE_DECLARE_NONSTD(), AP_DECLARE(), ap_proxy_http_process_response(), APR_HOOK_STRUCT(), and cache_save_filter().

#define HTTP_OK   200
 

Definition at line 421 of file httpd.h.

Referenced by add_cern_meta_data(), AP_CORE_DECLARE(), AP_CORE_DECLARE_NONSTD(), AP_DECLARE(), ap_process_http_connection(), ap_proxy_connect_handler(), ap_proxy_ftp_handler(), ap_proxy_http_process_response(), ap_read_request(), ap_set_byterange(), asis_handler(), cache_save_filter(), dav_method_bind(), dav_method_copymove(), dav_method_lock(), dav_method_merge(), dav_method_options(), dav_method_report(), dav_method_update(), dav_propfind_walker(), emit_head(), emit_tail(), find_file(), find_title(), fixup_dir(), ftp_set_TYPE(), handle_include(), handle_multi(), hook_fixup(), hook_uri2file(), include_cgi(), PROXY_DECLARE(), read_types_multi(), send_response_header(), and setup_choice_response().

#define HTTP_PARTIAL_CONTENT   206
 

Definition at line 427 of file httpd.h.

Referenced by ap_set_byterange().

#define HTTP_PAYMENT_REQUIRED   402
 

Definition at line 438 of file httpd.h.

#define HTTP_PRECONDITION_FAILED   412
 

Definition at line 448 of file httpd.h.

Referenced by AP_DECLARE(), DAV_DECLARE(), dav_method_bind(), dav_method_copymove(), dav_validate_resource_state(), and get_canned_error_string().

#define HTTP_PROCESSING   102
 

Definition at line 420 of file httpd.h.

#define HTTP_PROXY_AUTHENTICATION_REQUIRED   407
 

Definition at line 443 of file httpd.h.

Referenced by AP_DECLARE(), and get_canned_error_string().

#define HTTP_RANGE_NOT_SATISFIABLE   416
 

Definition at line 452 of file httpd.h.

Referenced by AP_CORE_DECLARE_NONSTD(), and get_canned_error_string().

#define HTTP_REQUEST_ENTITY_TOO_LARGE   413
 

Definition at line 449 of file httpd.h.

Referenced by AP_DECLARE(), ap_http_filter(), and get_canned_error_string().

#define HTTP_REQUEST_TIME_OUT   408
 

Definition at line 444 of file httpd.h.

Referenced by ap_read_request(), and get_canned_error_string().

#define HTTP_REQUEST_URI_TOO_LARGE   414
 

Definition at line 450 of file httpd.h.

Referenced by ap_read_request(), get_canned_error_string(), and read_request_line().

#define HTTP_RESET_CONTENT   205
 

Definition at line 426 of file httpd.h.

Referenced by ap_proxy_http_process_response().

#define HTTP_SEE_OTHER   303
 

Definition at line 432 of file httpd.h.

Referenced by add_redirect_internal(), cmd_rewriterule_setflag(), and get_canned_error_string().

#define HTTP_SERVICE_UNAVAILABLE   503
 

Definition at line 461 of file httpd.h.

Referenced by ap_proxy_ftp_handler(), connect_to_daemon(), and get_canned_error_string().

#define HTTP_SWITCHING_PROTOCOLS   101
 

Definition at line 419 of file httpd.h.

#define HTTP_TEMPORARY_REDIRECT   307
 

Definition at line 435 of file httpd.h.

Referenced by get_canned_error_string().

#define HTTP_UNAUTHORIZED   401
 

Definition at line 437 of file httpd.h.

Referenced by anon_authenticate_basic_user(), AP_DECLARE(), ap_proxy_ftp_handler(), authenticate_basic_user(), authenticate_digest_user(), check_nonce(), check_user_access(), dav_method_copymove(), dbm_authenticate_basic_user(), dbm_check_auth(), digest_check_auth(), fixup_dir(), ftp_unauthorized(), get_canned_error_string(), mod_auth_ldap_auth_checker(), and mod_auth_ldap_check_user_id().

#define HTTP_UNPROCESSABLE_ENTITY   422
 

Definition at line 454 of file httpd.h.

Referenced by get_canned_error_string().

#define HTTP_UNSUPPORTED_MEDIA_TYPE   415
 

Definition at line 451 of file httpd.h.

Referenced by get_canned_error_string(), and process_mkcol_body().

#define HTTP_UPGRADE_REQUIRED   426
 

Definition at line 457 of file httpd.h.

Referenced by get_canned_error_string().

#define HTTP_USE_PROXY   305
 

Definition at line 434 of file httpd.h.

Referenced by get_canned_error_string().

#define HTTP_VARIANT_ALSO_VARIES   506
 

Definition at line 464 of file httpd.h.

Referenced by get_canned_error_string(), and setup_choice_response().

#define HTTP_VERSION_NOT_SUPPORTED   505
 

Definition at line 463 of file httpd.h.

#define RESPONSE_CODES   57
 

The size of the static array in http_protocol.c for storing all of the potential response status-lines (a sparse table). A future version should dynamically generate the apr_table_t at startup.

Definition at line 416 of file httpd.h.

Referenced by AP_DECLARE(), merge_core_dir_configs(), and set_error_document().