Elaborate on possible use of status codes with the errors middleware
This commit is contained in:
parent
2560626419
commit
521fed1fea
2 changed files with 11 additions and 6 deletions
|
@ -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`
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue