MCPcopy Create free account
hub / github.com/apache/httpd / proxyerror_core

Function proxyerror_core

modules/proxy/proxy_util.c:412–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

410}
411
412static 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
432PROXY_DECLARE(int) ap_proxyerror(request_rec *r, int statuscode, const char *message)
433{

Callers 3

ap_proxyerrorFunction · 0.85
worker_address_resolveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected