Pool-Related Errors
POOL_NOT_FOUND
Code:POOL_NOT_FOUNDHTTP Status: 404
Category: Pool Errors Description: The specified pool address does not exist or is not initialized. Common Causes:
- Invalid pool address provided
- Pool has not been created yet
- Pool has been closed or migrated
- Wrong network (devnet vs mainnet)
INVALID_POOL_ADDRESS
Code:INVALID_POOL_ADDRESSHTTP Status: 400
Category: Pool Errors Description: The provided pool address is not a valid Solana public key. Common Causes:
- Malformed address string
- Incorrect address length
- Invalid base58 characters
- Null or undefined address
POOL_PAUSED
Code:POOL_PAUSEDHTTP Status: 503
Category: Pool Errors Description: The pool is temporarily paused and not accepting operations. Common Causes:
- Pool maintenance in progress
- Security pause activated
- Administrative intervention
- Protocol upgrade
RPC and Connection Errors
RPC_CONNECTION_FAILED
Code:RPC_CONNECTION_FAILEDHTTP Status: 503
Category: Network Errors Description: Failed to establish connection with Solana RPC endpoint. Common Causes:
- RPC endpoint is down
- Network connectivity issues
- Rate limiting by RPC provider
- Invalid RPC URL
RATE_LIMITED
Code:RATE_LIMITEDHTTP Status: 429
Category: Network Errors Description: Request rate limit exceeded for the RPC endpoint. Common Causes:
- Too many requests per second
- Batch operations too large
- Free tier limits exceeded
- Shared IP rate limiting
RPC_TIMEOUT
Code:RPC_TIMEOUTHTTP Status: 408
Category: Network Errors Description: RPC request exceeded the configured timeout period. Common Causes:
- Slow network connection
- RPC endpoint under heavy load
- Complex queries taking too long
- Timeout set too low
Data and Calculation Errors
QUOTE_CALCULATION_FAILED
Code:QUOTE_CALCULATION_FAILEDHTTP Status: 422
Category: Calculation Errors Description: Unable to calculate swap quote due to insufficient liquidity or invalid parameters. Common Causes:
- Insufficient liquidity for trade size
- Invalid token amounts
- Pool state inconsistency
- Extreme price impact
INSUFFICIENT_LIQUIDITY
Code:INSUFFICIENT_LIQUIDITYHTTP Status: 422
Category: Calculation Errors Description: Not enough liquidity in the pool to execute the requested operation. Common Causes:
- Large trade size relative to pool liquidity
- Low liquidity pool
- All liquidity out of range
- Recent large withdrawals
INVALID_BIN_RANGE
Code:INVALID_BIN_RANGEHTTP Status: 400
Category: Calculation Errors Description: The specified bin range is invalid or out of bounds. Common Causes:
- Lower bin ID greater than upper bin ID
- Bin IDs outside valid range
- Negative bin step values
- Bin range too wide
Position and User Errors
POSITION_NOT_FOUND
Code:POSITION_NOT_FOUNDHTTP Status: 404
Category: Position Errors Description: The specified position does not exist or user has no access. Common Causes:
- Invalid position address
- Position closed or withdrawn
- Wrong user account
- Position on different network
INSUFFICIENT_POSITION_LIQUIDITY
Code:INSUFFICIENT_POSITION_LIQUIDITYHTTP Status: 422
Category: Position Errors Description: Position has insufficient liquidity for the requested operation. Common Causes:
- Attempting to withdraw more than available
- Position partially closed
- Fees not claimed affecting calculations
- Rounding errors in calculations
POSITION_OUT_OF_RANGE
Code:POSITION_OUT_OF_RANGEHTTP Status: 409
Category: Position Errors Description: Position is outside the active trading range and cannot earn fees. Common Causes:
- Price moved outside position range
- Position created at wrong range
- Market volatility
- Position not rebalanced
Cache and Performance Errors
CACHE_MISS
Code:CACHE_MISSHTTP Status: 200 (Warning)
Category: Performance Warnings Description: Requested data not found in cache, fetching from source. Common Causes:
- Data expired from cache
- First time request
- Cache invalidated
- Cache size limits exceeded
BATCH_OPERATION_FAILED
Code:BATCH_OPERATION_FAILEDHTTP Status: 207
Category: Performance Errors Description: Some operations in a batch request failed while others succeeded. Common Causes:
- Mixed valid and invalid requests
- Partial network failures
- Some pools unavailable
- Rate limiting during batch
Authentication and Permission Errors
UNAUTHORIZED_ACCESS
Code:UNAUTHORIZED_ACCESSHTTP Status: 401
Category: Auth Errors Description: User does not have permission to access the requested resource. Common Causes:
- Wallet not connected
- Wrong wallet connected
- Insufficient permissions
- Session expired