I have designed a RESTful backend using struts2-rest-plugin.
My front-end is Ember.js CRUD app.
When I try to create a new record with duplicate ID my server is showing an exception.
How do I send it as HTTP-error-code-500 to my ember.js app?
I have designed a RESTful backend using struts2-rest-plugin.
My front-end is Ember.js CRUD app.
When I try to create a new record with duplicate ID my server is showing an exception.
How do I send it as HTTP-error-code-500 to my ember.js app?
In case of Struts I just needed to return DefaultHttpHeaders.