RateLimitedIssue

@Serializable
data class RateLimitedIssue(val message: String = "Too many requests", val status: Int = 429, val retryAfterMs: Long? = null) : Issue

Common issue for rate limiting.

Constructors

Link copied to clipboard
constructor(message: String = "Too many requests", status: Int = 429, retryAfterMs: Long? = null)

Properties

Link copied to clipboard
open override val message: String

The error message.

Link copied to clipboard
Link copied to clipboard
open override val status: Int

The HTTP status code. Should be something supported by http4k.