If an exception of the term
Context)) is caught and
is true, translate the exception into an HTTP 400 exception. If
the exception contains a stack-trace, this is stripped from the
The idea behind this hook is that applications can raise 400
- Throwing a specific (error) exception and adding a rule
to this predicate to interpret this as 400.
- Define rules for error_message//1 to formulate
an appropriate message.