[java] Timeout should have code 500, see
@@ -162,13 +162,9 @@ public HttpClient createClient(URL url) {
client.addNetworkInterceptor(chain -> {
Request request = chain.request();
Response response = chain.proceed(request);
- if (response.code() == 408) {
- return response.newBuilder()
- .code(404).message("Not Found")
- .build();
- } else {
- return response;
- }
+ return response.code() == 408
+ ? response.newBuilder().code(500).message("Server-Side Timeout").build()
+ : response;
});
return new OkHttpClient(client.build(), url);
