Skip to content

Commit

Permalink
Added guide documentation for new status codes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jespersm committed Sep 20, 2023
1 parent 8faaff9 commit 2a2272e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions site/guide/4-requests.md
Original file line number Diff line number Diff line change
Expand Up @@ -2020,6 +2020,13 @@ fn main() {
}
```

Besides `404 Not Found` for unknown URIs, Rocket may also produce
`405 Method Not Allowed` if a request matches a URI but not a declared method
for that URI. For routes declaring formats, Rocket will produce
`406 Not Acceptable` status for a client request _accepting_ a format which
isn't declared by the matching routes, or `415 Unsupported Media Type` in case
the _payload_ of a `PUT` or `POST` is not allowed by the route.

### Scoping

The first argument to `register()` is a path to scope the catcher under called
Expand Down

0 comments on commit 2a2272e

Please sign in to comment.