class HerdErrorInformationExceptionHandler {

    @ExceptionHandler(value = {IllegalArgumentException.class, HttpMessageNotReadableException.class, MissingServletRequestParameterException.class,
        TypeMismatchException.class, UnsupportedEncodingException.class})
    @ResponseStatus(HttpStatus.BAD_REQUEST)
    @ResponseBody
    public ErrorInformation handleBadRequestException(Exception exception)
    {
        return getErrorInformation(HttpStatus.BAD_REQUEST, exception);
    }

}