Expand description
Error types for the Rain SDK
This module defines all error types used throughout the Rain SDK, including HTTP errors, API errors, and validation errors.
§API Error Codes
The Rain API uses the following HTTP status codes for errors:
400- Invalid request (bad request parameters or body)401- Invalid authorization / Unauthorized (missing or invalid API key)403- Forbidden (insufficient permissions)404- Not found (resource not found: User, Card, Company, Transaction, Team, etc.)409- Conflict (e.g., “Company already has a contract on this chain”, “User already has a contract on this chain”, “Another active signature already exists”)423- Locked (e.g., “User address is locked”)500- Internal server error
Structs§
- ApiError
Response - API error response structure
Enums§
- Rain
Error - Main error type for the Rain SDK
Type Aliases§
- Result
- Result type alias for Rain SDK operations