Document how to turn off html error messages
Taure opened this issue · comments
Daniel Widgren commented
Today we render html with a homepage to view the error. This is good if you do views but if we only do api:s we want to turn this off.
{nova, [{render_error_pages, false}]}.
In config is how you do it. We need to document it.
Niclas Axelsson commented
Just to add to this. If you have set the Accept
-header to application/json
then you will have the error message returned as a json-structure instead :)