Simplify language in 'responses' guide.

This commit is contained in:
Jeb Rosen 2020-07-19 09:27:41 -07:00 committed by Sergio Benitez
parent 2fb6d00b24
commit 8224a1592f
1 changed files with 3 additions and 4 deletions

View File

@ -70,10 +70,9 @@ fn json() -> content::Json<&'static str> {
### Errors ### Errors
Responders may fail; they need not _always_ generate a response. Instead, they Responders may fail instead of generating a response by returning an `Err` with
can return an `Err` with a given status code. When this happens, Rocket forwards a status code. When this happens, Rocket forwards the request to the [error
the request to the [error catcher](../requests/#error-catchers) for the catcher](../requests/#error-catchers) for that status code.
given status code.
If an error catcher has been registered for the given status code, Rocket will If an error catcher has been registered for the given status code, Rocket will
invoke it. The catcher creates and returns a response to the client. If no error invoke it. The catcher creates and returns a response to the client. If no error