REST URL error handling using the Play framework REST URL error handling using the Play framework json json

REST URL error handling using the Play framework


I am not very familiar with the Play Framework, but I was interested. This discussion seemed at least similar to what you want:

Gaƫtan Renaudeau

...

You can customize errors pagesdepending of the http code error (404,500, 403, ...) by editingapp/views/errors/{code}.html fileswhere {code} is you http code. Ifyou are using other format than html(like xml, json) you can have404.json , 404.xml, etc...

So, modify:

app/views/errors/404.type_of_response

Hopefully this at least points you in the right direction.