Plug v1.8.1 Plug.Exception protocol View Source
A protocol that extends exceptions to be status-code aware.
By default, it looks for an implementation of the protocol,
otherwise checks if the exception has the :plug_status
field
or simply returns 500.
Link to this section Summary
Functions
Receives an exception and returns its HTTP status code
Link to this section Types
Link to this type
t()
View Source
t()
View Source
t() :: term()
t() :: term()
Link to this section Functions
Link to this function
status(exception)
View Source
status(exception)
View Source
status(t()) :: Plug.Conn.status()
status(t()) :: Plug.Conn.status()
Receives an exception and returns its HTTP status code.