Fixing status reason phrase

This commit is contained in:
Dillon Redding 2019-05-08 17:51:01 -05:00 committed by GitHub
parent 8c9a7a42cb
commit d8afe1b8c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,7 +30,7 @@ Setting the default-handler as a second argument to `ring-handler`:
; {: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: