@@ -21,19 +21,23 @@ public sealed class HttpError(
21
21
public override val cause : Error ? = null
22
22
) : AccessError {
23
23
24
+ /* * Malformed HTTP response. */
24
25
public class MalformedResponse (cause : Error ? ) :
25
26
HttpError (" The received response could not be decoded." , cause)
26
27
27
28
/* * The client, server or gateways timed out. */
28
29
public class Timeout (cause : Error ) :
29
30
HttpError (" Request timed out." , cause)
30
31
32
+ /* * Server could not be reached. */
31
33
public class Unreachable (cause : Error ) :
32
34
HttpError (" Server could not be reached." , cause)
33
35
36
+ /* * Redirection failed. */
34
37
public class Redirection (cause : Error ) :
35
38
HttpError (" Redirection failed." , cause)
36
39
40
+ /* * SSL Handshake failed. */
37
41
public class SslHandshake (cause : Error ) :
38
42
HttpError (" SSL handshake failed." , cause)
39
43
@@ -45,6 +49,8 @@ public sealed class HttpError(
45
49
}
46
50
47
51
/* *
52
+ * Server responded with an error status code.
53
+ *
48
54
* @param status HTTP status code.
49
55
* @param mediaType Response media type.
50
56
* @param body Response body.
0 commit comments