postgrest-0.3.2.0: REST API for any Postgres database
PostgREST.Error
Contents
pgErrResponse :: Bool -> UsageError -> Response Source #
errResponse :: Status -> Text -> Response Source #
Methods
toJSON :: Error -> Value #
toEncoding :: Error -> Encoding #
toJSON :: UsageError -> Value #
toEncoding :: UsageError -> Encoding #