duct

2019-11-19T00:25:49.228900Z

Their use allows more sophisticated handling of certain types of exceptions, particularly around error messages.

2019-11-19T00:27:17.229100Z

For example, the responses ::missing-params and ::failed-spec both produce a 400 “bad request” response. But because Ataraxy distinguishes them internally, you can dispatch off an unambiguous key.

2019-11-19T00:28:51.229300Z

With regard to mixing in middleware, the middleware should be added after the response is resolved. If it’s not doing that, then that’s a bug!