class ErrorUtils {

    public static int getErrorStatus(HttpServletRequest request) {
        Integer statusCode = (Integer) request.getAttribute(ATTR_ERROR_STATUS_CODE);
        return statusCode != null ? statusCode : HttpStatus.INTERNAL_SERVER_ERROR.value();
    }

    private  ErrorUtils();

}