novie-core/src/main/java/com/groupon/novie/internal/controllers/ApiController.java
@ExceptionHandler(InvalidSchemaException.class)
    @ResponseBody
    public ResponseEntity<String> handleInvalidSchemaException(InvalidSchemaException exception) {
        HttpHeaders headers = new HttpHeaders();
        headers.setContentType(MediaType.TEXT_PLAIN);
        return new ResponseEntity<String>(exception.getMessage(), headers, HttpStatus.NOT_FOUND);
    }
@ExceptionHandler(InvalidSchemaException.class)
    @ResponseBody
    public ResponseEntity<String> handleInvalidSchemaException(InvalidSchemaException exception) {
        HttpHeaders headers = new HttpHeaders();
        headers.setContentType(MediaType.TEXT_PLAIN);
        return new ResponseEntity<String>(exception.getMessage(), headers, HttpStatus.NOT_FOUND);
    }
<p>
Handles {@link InvalidSchemaException} generated by the controller itself
when receives a request to a non existing schema configuration.
</p>

@param exception of type {@link InvalidSchemaException}
@return A {@link ResponseEntity} with the {@link HttpStatus#NOT_FOUND}
code and a message describing the error itself.