Skip to content

Commit

Permalink
Re-add 408 response handling
Browse files Browse the repository at this point in the history
  • Loading branch information
SMadani committed Jun 17, 2024
1 parent b753291 commit 2ee2d47
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/opentok/util/HttpClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -923,6 +923,8 @@ public String getStream(String sessionId, String streamId) throws RequestExcepti
throw new RequestException(response.getResponseBody());
case 403:
throw new RequestException("Invalid OpenTok API key or JWT token.");
case 408:
throw new RequestException("You passed in an invalid stream ID: " + streamId);
case 500:
throw new RequestException("OpenTok server error.");
default:
Expand All @@ -947,6 +949,8 @@ public String forceMuteStream(String sessionId, String streamId) throws RequestE
throw new RequestException(response.getResponseBody());
case 403:
throw new RequestException("Invalid OpenTok API key or JWT token.");
case 408:
throw new RequestException("You passed in an invalid stream ID: "+streamId);
case 500:
throw new RequestException("OpenTok server error.");
default:
Expand Down

0 comments on commit 2ee2d47

Please sign in to comment.