htmlErrors property
Send an HTML error page to a browser. Off by default: every error
is JSON. When on, a request that does not want JSON (see
DoxRequest.expectsJson) gets a small HTML page with the status,
like 404 Not Found. When APP_ENV is development or local,
the page also shows the error text and the stack trace. API clients
still get JSON. A validation error and an answer from a custom
ExceptionHandler.render stay as they are.
Implementation
final bool htmlErrors;