Any before hook and matched route code is wrapped using Return::MultiLevel to allow DSL keywords such as forward and redirect to short-circuit remaining code without having to throw an exception. Return::MultiLevel will use Scope::Upper (an XS module) if it is available.

response_internal_error

The response_internal_error takes as input the list of applications and a variable error and returns an object of Dancer2::Core::Error.