PublicShow sourcehttp_exception.pl -- Map Prolog exceptions to HTTP errors

This module maps exceptions from various parts of the HTTP libraries as well as exceptions from user handler predicates into meaningful HTTP error codes such as 4XX and 5XX codes. For example, existence errors on http locations are mapped to 404 while out-of-stack is mapped to 503.

This library provides two hooks:

See also
- http_header.pl, http_wrapper.pl
Source map_exception_to_http_status(+Exception, -Reply, -HdrExtra, -Context)
Map certain exceptions to HTTP status codes. The http(not_modified) provides backward compatibility to http_reply(not_modified).

Undocumented predicates

The following predicates are exported, but not or incorrectly documented.

Source in_or_exclude_backtrace(Arg1, Arg2)