|
54 | 54 | :duct.handler.static/bad-request |
55 | 55 | {:headers {"Content-Type" "text/plain; charset=UTF-8"} |
56 | 56 | :body "Bad Request"} |
| 57 | + :duct.handler.static/bad-request-malformed |
| 58 | + {:headers {"Content-Type" "text/plain; charset=UTF-8"} |
| 59 | + :body "Bad Request Malformed"} |
57 | 60 | :duct.handler.static/not-found |
58 | 61 | {:headers {"Content-Type" "text/plain; charset=UTF-8"} |
59 | 62 | :body "Not Found"} |
|
98 | 101 | :logger (ig/ref :duct/logger)} |
99 | 102 | :duct.handler.static/bad-request |
100 | 103 | {:body {:error :bad-request}} |
| 104 | + :duct.handler.static/bad-request-malformed |
| 105 | + {:body {:error :malformed-request-body}} |
101 | 106 | :duct.handler.static/not-found |
102 | 107 | {:body {:error :not-found}} |
103 | 108 | :duct.handler.static/method-not-allowed |
104 | 109 | {:body {:error :method-not-allowed}} |
105 | 110 | :duct.handler.static/internal-server-error |
106 | 111 | {:body {:error :internal-server-error}} |
107 | | - :duct.middleware.web/format {} |
| 112 | + :duct.middleware.web/format |
| 113 | + {:default-malformed-handler (ig/ref :duct.handler.static/bad-request-malformed)} |
108 | 114 | :duct.middleware.web/stacktrace {} |
109 | 115 | :duct.middleware.web/hide-errors |
110 | 116 | {:error-handler (ig/ref :duct.handler.static/internal-server-error)} |
|
151 | 157 | :duct.middleware.web/webjars {} |
152 | 158 | :duct.middleware.web/stacktrace {} |
153 | 159 | :duct.handler.static/bad-request |
| 160 | + {:headers {"Content-Type" "text/html; charset=UTF-8"} |
| 161 | + :body (io/resource "duct/module/web/errors/400.html")} |
| 162 | + :duct.handler.static/bad-request-malformed |
154 | 163 | {:headers {"Content-Type" "text/html; charset=UTF-8"} |
155 | 164 | :body (io/resource "duct/module/web/errors/400.html")} |
156 | 165 | :duct.handler.static/not-found |
|
0 commit comments