HTTP status codes (like 200 OK, 404 Not Found, 500 Internal Server Error) are sent by the server.
But if you get a connection error or timeout, it means:
Since the server never received or processed the request:
π No response = No HTTP status = No Response object
| Cause | Thrown Exception | HTTP Status? |
|---|---|---|
| Keycloak server unreachable | java.net.ConnectException |
β No |
| TLS/SSL failure | javax.net.ssl.SSLHandshakeException |
β No |
| Request took too long | java.net.SocketTimeoutException |
β No |
| DNS resolution fails | UnknownHostException |
β No |
All of these are usually wrapped inside:
javax.ws.rs.ProcessingException in JAX-RS (used by Keycloak Admin Client)Note that the exception javax.ws.rs.ProcessingException is used to indicate (internal) JAX-RS processing errors. It is not used to indicate HTTP error response states. A HTTP error response is represented by aΒ WebApplicationExceptionΒ class or one of it's sub-classes