Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Middlewares for handling Twirp error responses.
Synopsis
- data TwirpError = TwirpError {}
- twirpErrorResponses :: Middleware
Documentation
data TwirpError Source #
A Twirp error that will be sent as a JSON-encoded response body. See: https://github.com/twitchtv/twirp/blob/master/docs/errors.md
Instances
twirpErrorResponses :: Middleware Source #
Rewrite error responses to use Twirp's error codes and JSON encoding when they don't already fit that model.