Я использую Java-клиент WS в моей игровой среде. Но я получаю следующий ответ. Мой источник:
WSRequest request = ws.url("http://localhost:9000/office");
CompletionStage<String> response = request.get().thenApply(x -> x.getBody());
String s = response.toCompletableFuture().get();
System.out.println(s);
Вывод выглядит следующим образом:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Error response</title>
</head>
<body>
<h1>Error response</h1>
<p>Error code: 400</p>
<p>Message: Bad Request.</p>
<p>Error code explanation: 400 - Bad request syntax or unsupported method.</p>
</body>
</html>
Я отключил все предварительно включенные фильтры как "play.filters.enabledзнак равноЯ действительно ценю ваши предложения.