| 410 | } |
| 411 | |
| 412 | static int proxyerror_core(request_rec *r, int statuscode, const char *message, |
| 413 | apr_status_t rv) |
| 414 | { |
| 415 | ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r, APLOGNO(00898) |
| 416 | "%s returned by %s", message, r->uri); |
| 417 | |
| 418 | apr_table_setn(r->notes, "error-notes", |
| 419 | apr_pstrcat(r->pool, |
| 420 | "The proxy server could not handle the request<p>" |
| 421 | "Reason: <strong>", ap_escape_html(r->pool, message), |
| 422 | "</strong></p>", |
| 423 | NULL)); |
| 424 | |
| 425 | /* Allow "error-notes" string to be printed by ap_send_error_response() */ |
| 426 | apr_table_setn(r->notes, "verbose-error-to", "*"); |
| 427 | |
| 428 | r->status_line = apr_psprintf(r->pool, "%3.3u Proxy Error", statuscode); |
| 429 | return statuscode; |
| 430 | } |
| 431 | |
| 432 | PROXY_DECLARE(int) ap_proxyerror(request_rec *r, int statuscode, const char *message) |
| 433 | { |
no outgoing calls
no test coverage detected