Skip to main content

Module error

Module error 

Source
Expand description

Error types for Redis Cloud API client

This module provides error handling for all API operations, including typed errors for common HTTP status codes and network failures.

§Error Types

  • CloudError::BadRequest - HTTP 400 errors
  • CloudError::AuthenticationFailed - HTTP 401 errors
  • CloudError::Forbidden - HTTP 403 errors
  • CloudError::NotFound - HTTP 404 errors
  • CloudError::RateLimited - HTTP 429 errors
  • CloudError::InternalServerError - HTTP 500 errors
  • CloudError::ServiceUnavailable - HTTP 503 errors

§Retryable Errors

Some errors are considered retryable (transient failures that may succeed on retry):

  • Rate limited (429)
  • Service unavailable (503)
  • Connection/request errors (network issues)

Use CloudError::is_retryable() to check if an error should be retried.

Enums§

CloudError
Errors that can occur when interacting with the Redis Cloud API

Type Aliases§

Result
Result type alias for Redis Cloud operations