Elaborate on possible use of status codes with the errors middleware

This commit is contained in:
Moritz E. Beber 2021-06-08 19:02:05 +02:00 committed by GitHub
parent 2560626419
commit 521fed1fea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 6 deletions

View file

@ -99,7 +99,10 @@ The status code ranges are inclusive (`500-599` will trigger with every code bet
!!! note ""
You can define either a status code as a number (`500`) or ranges by separating two codes with a dash (`500-599`).
You can define either a status code as a number (`500`),
as multiple comma-separated numbers (`500,502`),
as ranges by separating two codes with a dash (`500-599`),
or a combination of the two (`404,418,500-599`).
### `service`