wai-utilities-0.16.1: Various helpers for WAI
Safe HaskellSafe-Inferred
LanguageGHC2021

Network.Wai.Utilities.JSONResponse

Synopsis

Documentation

data JSONResponse Source #

A custom JSON response to be returned to the client as an error.

Both static and dynamic errors are converted to this type before being turned into HTTP responses. It is a generalisation of Error, encompassing both standard error values (including label, code and message fields), and custom error-like responses that include extra data for the clients.

Constructors

JSONResponse 

Fields

Instances

Instances details
FromJSON JSONResponse Source # 
Instance details

Defined in Network.Wai.Utilities.JSONResponse

ToJSON JSONResponse Source # 
Instance details

Defined in Network.Wai.Utilities.JSONResponse

Exception JSONResponse Source # 
Instance details

Defined in Network.Wai.Utilities.JSONResponse

Show JSONResponse Source # 
Instance details

Defined in Network.Wai.Utilities.JSONResponse

Eq JSONResponse Source # 
Instance details

Defined in Network.Wai.Utilities.JSONResponse

Ord JSONResponse Source # 
Instance details

Defined in Network.Wai.Utilities.JSONResponse

ToSchema JSONResponse Source # 
Instance details

Defined in Network.Wai.Utilities.JSONResponse

ToSchema JSONResponse Source # 
Instance details

Defined in Network.Wai.Utilities.JSONResponse