Home
last modified time | relevance | path

Searched refs:http_status (Results 1 – 25 of 43) sorted by relevance

12

/lighttpd1.4/src/
H A Dhttp-header-glue.c48 r->http_status = 500; in http_response_buffer_append_authority()
82 r->http_status = 500; in http_response_buffer_append_authority()
268 r->http_status = 0; in http_response_header_clear()
290 r->http_status = 0; in http_response_reset()
314 r->http_status = http_status; in http_response_reqbody_read_error()
342 r->http_status = 403; in http_response_send_file()
354 r->http_status = 403; in http_response_send_file()
381 && (0 == r->http_status || 200 == r->http_status); in http_response_send_file()
633 if (r->http_status < 500 && r->http_status != 400) in http_response_backend_done()
1077 if (0 == r->http_status || 101 == r->http_status) in http_response_check_1xx()
[all …]
H A Dhttp_range.c332 const int http_status = r->http_status; in http_range_rfc7233() local
340 return http_status; in http_range_rfc7233()
347 if (200 != http_status) in http_range_rfc7233()
348 return http_status; in http_range_rfc7233()
355 return http_status; in http_range_rfc7233()
359 return http_status; in http_range_rfc7233()
374 return http_status; in http_range_rfc7233()
378 return http_status; in http_range_rfc7233()
386 return http_status; in http_range_rfc7233()
416 return http_status; in http_range_rfc7233()
[all …]
H A Dresponse.c119 if (304 == r->http_status in http_response_write_header()
199 r->http_status = code; in http_response_physical_path_error()
232 r->http_status = 200; in http_response_physical_path_check()
342 r->http_status = 200; in http_response_prepare_options_star()
563 r->http_status = 501; in http_response_prepare()
754 if (r->http_status >= 400 && r->http_status < 600) in http_response_write_prepare()
802 && r->http_status != 204 && r->http_status != 304) { in http_response_write_prepare()
895 r->http_status); in http_response_call_error_handler()
939 else if (r->http_status == 404 || r->http_status == 403) in http_response_has_error_handler()
956 else if ((r->http_status == 404 || r->http_status == 403) in http_response_has_error_handler()
[all …]
H A Dhttp_cgi.c56 && r->http_status >= 300 && r->http_status < 400) { in http_cgi_local_redir()
61 r->http_status = 500; /* Internal Server Error */ in http_cgi_local_redir()
77 if (r->http_status != 307 && r->http_status != 308) { in http_cgi_local_redir()
H A Dhttp_kv.c74 static const keyvalue http_status[] = { variable
178 return keyvalue_from_key(http_status, i)->value;
210 const keyvalue * const kv = keyvalue_from_key(http_status, status); in http_status_append()
H A Dh2.c1124 if (0 == r->http_status) { in h2_recv_data()
1437 r->http_status = http_status; in h2_parse_headers_frame()
1493 r->http_status = in h2_parse_headers_frame()
1496 if (0 == r->http_status) in h2_parse_headers_frame()
1622 r->http_status = 0; in h2_recv_headers()
1698 r->http_status = 0; in h2_recv_headers()
2131 if (304 == r->http_status in h2_send_headers()
2821 if (r->http_status) { in h2_release_stream()
2927 h2r->http_status = 101; in h2_con_upgrade_h2c()
2932 h2r->http_status = 0; in h2_con_upgrade_h2c()
[all …]
H A Dmod_fastcgi.c271 r->http_status = 400; in fcgi_create_env()
407 (r->http_status == 0 || r->http_status == 200)) { in fcgi_recv_parse_loop()
420 && ( r->http_status == 204 in fcgi_recv_parse_loop()
421 || r->http_status == 205 in fcgi_recv_parse_loop()
422 || r->http_status == 304 in fcgi_recv_parse_loop()
H A Dmod_cgi.c514 if (hctx->conf.upgrade && r->http_status == 101) { in cgi_response_headers()
517 r->http_status = 200; /* OK (response status for CONNECT) */ in cgi_response_headers()
537 && r->http_status < 300) { in cgi_response_headers()
541 r->http_status = 405; /* Method Not Allowed */ in cgi_response_headers()
629 if (0 == r->http_status) r->http_status = 200; /* OK */ in cgi_process_rd_revents()
1010 r->http_status = 405; /* Method Not Allowed */ in URIHANDLER_FUNC()
1140 r->http_status = 500; in SUBREQUEST_FUNC()
1177 if (0 == r->http_status) r->http_status = 504; /* Gateway Timeout */ in cgi_trigger_hctx_timeout()
H A Drequest.c1310 if (0 == r->http_status) { in http_request_headers_fin()
1336 r->http_status = http_request_parse_hoff(r, hdrs, hoff, scheme_port); in http_request_headers_process()
1340 if (__builtin_expect( (0 != r->http_status), 0)) { in http_request_headers_process()
1354 if (0 == r->http_status) in http_request_headers_process_h2()
1355 r->http_status = http_request_parse(r, scheme_port); in http_request_headers_process_h2()
1357 if (0 == r->http_status) { in http_request_headers_process_h2()
1359 r->http_status = http_request_header_line_invalid(r, 400, in http_request_headers_process_h2()
1366 if (__builtin_expect( (0 != r->http_status), 0)) { in http_request_headers_process_h2()
H A Dmod_expire.c310 if (r->http_status != 200 && r->http_status != 204 && r->http_status != 206) in REQUEST_FUNC()
H A Dmod_indexfile.c105 r->http_status = 403; in __attribute_nonnull__()
109 r->http_status = 500; in __attribute_nonnull__()
H A Dmod_wstunnel.c358 r->http_status = (r->http_version > HTTP_VERSION_1_1) in wstunnel_create_env()
425 r->http_status = 400; /* Bad Request */ in wstunnel_is_allowed_origin()
439 r->http_status = 403; /* Forbidden */ in wstunnel_is_allowed_origin()
451 r->http_status = 400; /* Bad Request */ in wstunnel_check_request()
458 r->http_status = 400; /* Bad Request */ in wstunnel_check_request()
846 r->http_status = 400; /* Bad Request */ in mod_wstunnel_handshake_create_response()
865 r->http_status = 400; /* Bad Request */ in mod_wstunnel_handshake_create_response()
873 r->http_status = 503; /* Service Unavailable */ in mod_wstunnel_handshake_create_response()
H A Dmod_ajp13.c653 r->http_status = 400; in ajp13_create_env()
840 (r->http_status == 0 || r->http_status == 200)) { in ajp13_recv_parse_loop()
853 && ( r->http_status == 204 in ajp13_recv_parse_loop()
854 || r->http_status == 205 in ajp13_recv_parse_loop()
855 || r->http_status == 304 in ajp13_recv_parse_loop()
H A Dhttp_chunk.c364 r->gw_dechunk->done = r->http_status; in http_chunk_decode_append_data()
379 r->gw_dechunk->done = r->http_status; in http_chunk_decode_append_data()
396 r->gw_dechunk->done = r->http_status; in http_chunk_decode_append_data()
H A Dmod_proxy.c1044 r->http_status = 200; /* OK */ in proxy_create_env_connect()
1060 if (remap_hdrs->upgrade && r->http_status == 101) { in proxy_response_headers()
1063 r->http_status = 200; /* OK (response status for CONNECT) */ in proxy_response_headers()
1084 && r->http_status < 300) { in proxy_response_headers()
1088 r->http_status = 405; /* Method Not Allowed */ in proxy_response_headers()
1163 r->http_status = 405; /* Method Not Allowed */ in mod_proxy_check_extension()
H A Dmod_scgi.c197 r->http_status = 400; in scgi_create_env()
219 r->http_status = 431; /* Request Header Fields Too Large */ in scgi_create_env()
H A Dresponse.h47 handler_t http_response_reqbody_read_error(request_st *r, int http_status);
H A Dmod_status.c658 r->http_status = 204; in mod_status_handle_server_statistics()
672 r->http_status = 200; in mod_status_handle_server_statistics()
690 r->http_status = 200; in mod_status_handle_server_status()
785 r->http_status = 200; in mod_status_handle_server_config()
H A Dmod_dirlisting.c1338 r->http_status = 500; in URIHANDLER_FUNC()
1361 r->http_status = 503; in URIHANDLER_FUNC()
1385 r->http_status = 403; in URIHANDLER_FUNC()
1400 r->http_status = 200; in URIHANDLER_FUNC()
1495 if (r->http_status < 400) in mod_dirlisting_cache_check()
1497 r->http_status = 0; in mod_dirlisting_cache_check()
H A Dmod_skeleton.c129 r->http_status = 403; /* example: reject request with 403 Forbidden */ in URIHANDLER_FUNC()
/lighttpd1.4/src/t/
H A Dtest_mod_indexfile.c15 r->http_status = 0; in test_mod_indexfile_reset()
26 if (r->http_status != status in run_mod_indexfile_tryfiles()
31 r->http_status, desc); in run_mod_indexfile_tryfiles()
H A Dtest_mod_staticfile.c18 r->http_status = 0; in test_mod_staticfile_reset()
30 if (r->http_status != status) { in run_http_response_send_file()
34 r->http_status, desc); in run_http_response_send_file()
323 if (r->http_status != status in run_mod_staticfile_process()
328 r->http_status, desc); in run_mod_staticfile_process()
H A Dtest_mod_alias.c69 assert(403 == r.http_status); in test_mod_alias_check()
70 r.http_status = 0; in test_mod_alias_check()
H A Dtest_request.c40 int http_status = in run_http_request_parse() local
42 if (http_status != status) { in run_http_request_parse()
45 __FILE__, line, "http_request_parse_hoff", status, http_status, in run_http_request_parse()
H A Dtest_mod_userdir.c12 r->http_status = 0; in test_mod_userdir_reset()
54 assert(301 == r->http_status); in test_mod_userdir_docroot_handler()

12