@ExceptionHandler(ServiceDefinitionDoesNotExistException.class) public ResponseEntity<ErrorMessage> handleException(ServiceDefinitionDoesNotExistException ex) { log.debug("Service definition does not exist: ", ex); return getErrorResponse(ex.getMessage(), HttpStatus.UNPROCESSABLE_ENTITY); }