package okhttp3.internal.http2; import o.C14953gcr; /* loaded from: classes.dex */ public enum ErrorCode { NO_ERROR(0), PROTOCOL_ERROR(1), INTERNAL_ERROR(2), FLOW_CONTROL_ERROR(3), SETTINGS_TIMEOUT(4), STREAM_CLOSED(5), FRAME_SIZE_ERROR(6), REFUSED_STREAM(7), CANCEL(8), COMPRESSION_ERROR(9), CONNECT_ERROR(10), ENHANCE_YOUR_CALM(11), INADEQUATE_SECURITY(12), HTTP_1_1_REQUIRED(13); public static final Companion Companion = new Companion(null); private final int httpCode; ErrorCode(int i) { this.httpCode = i; } /* loaded from: classes.dex */ public static final class Companion { private Companion() { } public final ErrorCode fromHttp2(int i) { for (ErrorCode errorCode : ErrorCode.values()) { if (errorCode.getHttpCode() == i) { return errorCode; } } return null; } public /* synthetic */ Companion(C14953gcr c14953gcr) { this(); } } public final int getHttpCode() { return this.httpCode; } }