cdepillabout / servant-checked-exceptions

type-level errors for Servant APIs.
https://hackage.haskell.org/package/servant-checked-exceptions
BSD 3-Clause "New" or "Revised" License
73 stars 14 forks source link

set http status for errors #2

Closed cdepillabout closed 6 years ago

cdepillabout commented 7 years ago

Currently there is no way to set the http status code when throwing errors (short of using a custom middleware).

It might be possible if something like https://github.com/haskell-servant/servant/issues/732 gets implemented in servant.

cdepillabout commented 6 years ago

This is fixed in https://github.com/cdepillabout/servant-checked-exceptions/pull/19.