Skip to content

Commit

Permalink
Improve doc
Browse files Browse the repository at this point in the history
  • Loading branch information
qnga committed Jan 9, 2024
1 parent 670698d commit 6c0b508
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,23 @@ public sealed class HttpError(
public override val cause: Error? = null
) : AccessError {

/** Malformed HTTP response. */
public class MalformedResponse(cause: Error?) :
HttpError("The received response could not be decoded.", cause)

/** The client, server or gateways timed out. */
public class Timeout(cause: Error) :
HttpError("Request timed out.", cause)

/** Server could not be reached. */
public class Unreachable(cause: Error) :
HttpError("Server could not be reached.", cause)

/** Redirection failed. */
public class Redirection(cause: Error) :
HttpError("Redirection failed.", cause)

/** SSL Handshake failed. */
public class SslHandshake(cause: Error) :
HttpError("SSL handshake failed.", cause)

Expand All @@ -45,6 +49,8 @@ public sealed class HttpError(
}

/**
* Server responded with an error status code.
*
* @param status HTTP status code.
* @param mediaType Response media type.
* @param body Response body.
Expand Down

0 comments on commit 6c0b508

Please sign in to comment.