Definition:
void ap_custom_response(request_rec *r, int status, char *string);
Usage example:
r->content_type = "text/plain";
ap_custom_response(r, HTTP_FORBIDDEN, "Access denied.
");
This routine permits modules to provide a custom response body for
error pages instead of the standard ones provided by the core
server. This function has an effect quite similar to that of the
ErrorDocument directive, except that the API routine
only supplies a response body for the specified request rather than
a general one for all responses with the indicated status code, and the
body is a string, rather than a script or something to be invoked.
Previous: ap_create_request_config
Next: ap_default_port_for_request
Table of Contents
(Routines,
Structures,
Data Cells,
Constants)