An error handler middleware which returns a error description in JSON format

simple_error_handler_json(jug, path = NULL)

Arguments

jug

the jug instance

path

the path to bind to, default = NULL (all paths)

See also

simple_error_handler