class HerdErrorInformationExceptionHandler {

    @ExceptionHandler(value = MethodNotAllowedException.class)
    @ResponseStatus(HttpStatus.METHOD_NOT_ALLOWED)
    @ResponseBody
    public ErrorInformation handleOperationNotAllowedException(RuntimeException exception)
    {
        return getErrorInformation(HttpStatus.METHOD_NOT_ALLOWED, exception);
    }

}