I am using methods like this
@RequestMapping(method = RequestMethod.GET) public ResponseEntity getUser(@RequestHeader(value=\"Access-ke
return new ResponseEntity<>(GenericResponseBean.newGenericError("Error during the calling the service", -1L), HttpStatus.EXPECTATION_FAILED);