After struggling a while to find the most correct way of returning HTTP status 204 from a REST controller I finally find the solution – which of-course is very simple.

Just add the @ResponseStatus annotation to your resource let the method return void.


Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.