Skip to content

Commit

Permalink
Define all HTTP2 error codes (#3756)
Browse files Browse the repository at this point in the history
  • Loading branch information
yschimke authored and swankjesse committed Jan 2, 2018
1 parent 3a53937 commit 901a514
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion okhttp/src/main/java/okhttp3/internal/http2/ErrorCode.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,17 @@ public enum ErrorCode {

REFUSED_STREAM(7),

CANCEL(8);
CANCEL(8),

COMPRESSION_ERROR(9),

CONNECT_ERROR(0xa),

ENHANCE_YOUR_CALM(0xb),

INADEQUATE_SECURITY(0xc),

HTTP_1_1_REQUIRED(0xd);

public final int httpCode;

Expand Down

0 comments on commit 901a514

Please sign in to comment.