|
16 | 16 | {:not-found |
17 | 17 | (ig/ref :duct.handler.static/not-found) |
18 | 18 | :method-not-allowed |
19 | | - (ig/ref :duct.handler.static/method-not-allowed)}} |
| 19 | + (ig/ref :duct.handler.static/method-not-allowed) |
| 20 | + :not-acceptable |
| 21 | + (ig/ref :duct.handler.static/not-acceptable)}} |
20 | 22 | :duct.middleware.web/defaults |
21 | 23 | {:params {:urlencoded true, :keywordize true} |
22 | 24 | :responses {:not-modified-responses true |
|
36 | 38 | :duct.handler.static/method-not-allowed |
37 | 39 | {:headers {"Content-Type" "text/plain; charset=UTF-8"} |
38 | 40 | :body "Method Not Allowed"} |
| 41 | + :duct.handler.static/not-acceptable |
| 42 | + {:headers {"Content-Type" "text/plain; charset=UTF-8"} |
| 43 | + :body "Not Acceptable"} |
39 | 44 | :duct.handler.static/internal-server-error |
40 | 45 | {:headers {"Content-Type" "text/plain; charset=UTF-8"} |
41 | 46 | :body "Internal Server Error"} |
|
60 | 65 | {:not-found |
61 | 66 | (ig/ref :duct.handler.static/not-found) |
62 | 67 | :method-not-allowed |
63 | | - (ig/ref :duct.handler.static/method-not-allowed)}} |
| 68 | + (ig/ref :duct.handler.static/method-not-allowed) |
| 69 | + :not-acceptable |
| 70 | + (ig/ref :duct.handler.static/not-acceptable)}} |
64 | 71 | :duct.middleware.web/defaults |
65 | 72 | {:params {:urlencoded true, :keywordize true} |
66 | 73 | :responses {:not-modified-responses true |
|
77 | 84 | {:body {:error :not-found}} |
78 | 85 | :duct.handler.static/method-not-allowed |
79 | 86 | {:body {:error :method-not-allowed}} |
| 87 | + :duct.handler.static/not-acceptable |
| 88 | + {:body {:error :not-acceptable}} |
80 | 89 | :duct.handler.static/internal-server-error |
81 | 90 | {:headers {"Content-Type" "application/json"} |
82 | 91 | :body (io/resource "duct/module/web/errors/500.json")} |
|
102 | 111 | {:not-found |
103 | 112 | (ig/ref :duct.handler.static/not-found) |
104 | 113 | :method-not-allowed |
105 | | - (ig/ref :duct.handler.static/method-not-allowed)}} |
| 114 | + (ig/ref :duct.handler.static/method-not-allowed) |
| 115 | + :not-acceptable |
| 116 | + (ig/ref :duct.handler.static/not-acceptable)}} |
106 | 117 | :duct.middleware.web/defaults |
107 | 118 | {:params {:urlencoded true |
108 | 119 | :multipart true |
|
135 | 146 | :duct.handler.static/method-not-allowed |
136 | 147 | {:headers {"Content-Type" "text/html; charset=UTF-8"} |
137 | 148 | :body (io/resource "duct/module/web/errors/405.html")} |
| 149 | + :duct.handler.static/not-acceptable |
| 150 | + {:headers {"Content-Type" "text/html; charset=UTF-8"} |
| 151 | + :body (io/resource "duct/module/web/errors/406.html")} |
138 | 152 | :duct.handler.static/internal-server-error |
139 | 153 | {:headers {"Content-Type" "text/html; charset=UTF-8"} |
140 | 154 | :body (io/resource "duct/module/web/errors/500.html")} |
|
0 commit comments