RestRequestException
abstract class RestRequestException(val request: Request<*, *>, val status: HttpStatus, val error: DiscordErrorResponse? = null) : RequestException(source)
Signals that an error related to interactions with the REST API occurred.
status — The HTTP Status code of the failed request.
error — The JSON error body of the failed request, this is optionally present.