mirror of https://github.com/rwf2/Rocket.git
Simplify language in 'responses' guide.
This commit is contained in:
parent
2fb6d00b24
commit
8224a1592f
|
@ -70,10 +70,9 @@ fn json() -> content::Json<&'static str> {
|
|||
|
||||
### Errors
|
||||
|
||||
Responders may fail; they need not _always_ generate a response. Instead, they
|
||||
can return an `Err` with a given status code. When this happens, Rocket forwards
|
||||
the request to the [error catcher](../requests/#error-catchers) for the
|
||||
given status code.
|
||||
Responders may fail instead of generating a response by returning an `Err` with
|
||||
a status code. When this happens, Rocket forwards the request to the [error
|
||||
catcher](../requests/#error-catchers) for that status code.
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue