Possible Duplicate:
Return only string message from Spring MVC 3 Controller
My spring controller has a endpoint where I want to only:
1. set the http response code
2. return a string back, don't need to render a .jsp view page or anything.
So will want to set the http status code to 200 OK or 500 etc. And simply return a string like "OK".
How can I do this, or am I forced to render a .jsp view page?