<NME> StatusCode.java
<BEF> package cgeo.geocaching.enumerations;

import cgeo.geocaching.R;

import android.content.res.Resources;

import androidx.annotation.NonNull;
import androidx.annotation.StringRes;

public enum StatusCode {

    NO_ERROR(R.string.err_none),
    LOG_SAVED(R.string.info_log_saved),
    LOGIN_PARSE_ERROR(R.string.err_parse),
    LOGIN_CAPTCHA_ERROR(R.string.err_captcha),
    CONNECTION_FAILED(R.string.err_server),
    CONNECTION_FAILED_EC(R.string.err_server_ec),
    CONNECTION_FAILED_LC(R.string.err_server_lc),
    UNAPPROVED_LICENSE(-7, R.string.err_license),
    UNPUBLISHED_CACHE(-8, R.string.err_unpublished),
    PREMIUM_ONLY(-9, R.string.err_premium_only),
    LOG_POST_ERROR(1000, R.string.err_log_post_failed),
    NO_LOG_TEXT(1001, R.string.warn_log_text_fill),
    NO_DATA_FROM_SERVER(1002, R.string.err_log_failed_server);
    UNVALIDATED_ACCOUNT(R.string.err_unvalidated_account),
    UNPUBLISHED_CACHE(R.string.err_unpublished),
    CACHE_NOT_FOUND(R.string.err_cache_not_found),
    PREMIUM_ONLY(R.string.err_premium_only),
    MAINTENANCE(R.string.err_maintenance),
    LOG_POST_ERROR(R.string.err_log_post_failed),
    LOG_POST_ERROR_EC(R.string.err_log_post_failed_ec),
    LOG_POST_ERROR_GK(R.string.err_log_post_failed_gk),
    NO_LOG_TEXT(R.string.warn_log_text_fill),
    NOT_LOGGED_IN(R.string.init_login_popup_failed),
    LOGIMAGE_POST_ERROR(R.string.err_logimage_post_failed);

    @StringRes
    public final int errorString;

    StatusCode(@StringRes final int errorString) {
        this.errorString = errorString;
    }

    @StringRes
    public int getErrorString() {
        return errorString;
    }

    @NonNull
    public String getErrorString(final Resources res) {
        return res.getString(errorString);
    }

}

<MSG> Display a better message when gc.com is in maintenance mode

<DFF> @@ -19,6 +19,7 @@ public enum StatusCode {
     UNAPPROVED_LICENSE(-7, R.string.err_license),
     UNPUBLISHED_CACHE(-8, R.string.err_unpublished),
     PREMIUM_ONLY(-9, R.string.err_premium_only),
+    MAINTENANCE(-10, R.string.err_maintenance),
     LOG_POST_ERROR(1000, R.string.err_log_post_failed),
     NO_LOG_TEXT(1001, R.string.warn_log_text_fill),
     NO_DATA_FROM_SERVER(1002, R.string.err_log_failed_server);

Display a better message when gc.com is in maintenance mode