mirror of
https://github.com/metosin/reitit.git
synced 2026-02-07 12:23:12 +00:00
Merge pull request #266 from dillonredding/patch-1
Fix status reason phrase
This commit is contained in:
commit
3351bca1fd
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ Setting the default-handler as a second argument to `ring-handler`:
|
||||||
; {:status 404, :body ""}
|
; {:status 404, :body ""}
|
||||||
```
|
```
|
||||||
|
|
||||||
To get more correct http error responses, `ring/create-default-handler` can be used. It differentiates `:not-found` (no route matched), `:method-not-accepted` (no method matched) and `:not-acceptable` (handler returned `nil`).
|
To get more correct http error responses, `ring/create-default-handler` can be used. It differentiates `:not-found` (no route matched), `:method-not-allowed` (no method matched) and `:not-acceptable` (handler returned `nil`).
|
||||||
|
|
||||||
With defaults:
|
With defaults:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue