private static ArsenalPayApiException translateToException(String status) {
        final Map<String, ArsenalPayApiException> holder = new HashMap<String, ArsenalPayApiException>() {{
            put(null,             new InternalApiException("Api server status is null."));
            put("",               new InternalApiException("Api server status is empty."));
            put("ERR_AMOUNT",     new PaymentException("Invalid amount value."));
            put("ERR_SID",        new PaymentException("Invalid sid(session id) value."));
            put("ERR_PHONE",      new PaymentException("Invalid payerId or value doesn't exist."));
            put("ERR_CURRENCY",   new PaymentException("Invalid currency value or service doesn't support it."));
            put("ERR_DATEFORMAT", new PaymentException("Invalid date format."));
            put("ERROR",          new InternalApiException("Unknown api server error."));
            put("ERR_ACCESS",     new InternalApiException("Unknown api server error."));
            put("ERR_NODB",       new InternalApiException("Unknown api server error."));
        }};
        final ArsenalPayApiException exception = holder.get(status);
        if (exception == null) {
            final String comment = String.format("Unrecognized api server status [%s].", status);
            return new InternalApiException(comment);
        }
        return exception;
    }