I want to return , 555 status code in response.
I have checked ResponseEntity class of spring framework.
I can see all constructors accept only particular codes from HttpStatus enum. This can be achieved by ,
return ResponseEntity.status(HttpStatus.CREATED).contentType(MediaType.TEXT_PLAIN).body("Custom string answer");
Is there any way to return status code like 555?