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 section Functions

Receives an exception and returns its HTTP status code.