Hello team,
We all love REST-full-ness, so I'd like to return more REST-ful status codes from my endpoints. (Example: 201 CREATED from a POST endpoint which creates a resource).
But I can't find any way to set the HTTP status code. Can anyone help please?
Some other (sad-path) status codes seem to be driven by throwing an exception - eg. NotFoundException causes a 404. But I want to return a different status code *and* XML/JSON in the response.
Thanks all!
Matthew