docs: Add handle_errors, CEL matcher; a few other improvements

This commit is contained in:
Matthew Holt 2020-03-24 17:14:09 -06:00
parent e8e0ec148b
commit f4a2d34127
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5
5 changed files with 45 additions and 1 deletions

View file

@ -0,0 +1,19 @@
---
title: handle_errors (Caddyfile directive)
---
# handle_errors
Sets up error handlers.
When the normal HTTP request handlers return an error, normal procesing stops and the error handlers are invoked. Error handlers form a route which is just like normal routes, and they can do anything that normal routes can do. This enables great control and flexibility when handling errors during HTTP requests.
## Syntax
```
handle_errors {
<directives...>
}
```
- **<directives...>** is a list of HTTP handler directives, directive blocks, or matchers; one per line.