I understand that Restler automatically returns the result of my method with the HTTP Status code 200 (OK) and if I want to return an error response I use
throw new RestException(400); // returns HTTP 400 Bad Request
But how do I return a response of say, HTTP 201 Created along with the resulting value?
should work