novaframework / nova

Web framework for Erlang.

Home Page:http://www.novaframework.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Document how to turn off html error messages

Taure opened this issue · comments

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.

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 :)