Error Codes & Status Reference

Comprehensive guide to Smart Money API error codes, HTTP status codes, and troubleshooting steps. Understand error responses and resolve integration issues quickly.

2xx Success Codes

Success responses indicate the request was processed successfully.

Code Status Meaning
200 OK Request succeeded. Response body contains the requested data.
201 Created Resource was created successfully. Response includes the new resource.
204 No Content Request succeeded but there's no content to return (e.g., DELETE).

Example 200 Response

JSON
{ "success": true, "data": { "total": 42, "positions": [...], "pagination": { "page": 1, "limit": 50 } }, "timestamp": "2026-03-21T14:35:22Z" }

4xx Client Error Codes

Client errors indicate the request was malformed or invalid. Fix your request and retry.

Code Status Cause
400 Bad Request Malformed request syntax. Check query parameters, headers, and request body.
401 Unauthorized Missing or invalid authentication credentials. Check your API key or JWT token.
402 Payment Required Your subscription payment failed. Update billing information in your account.
403 Forbidden Authenticated but not authorized for this resource. Your plan doesn't include this feature.
404 Not Found Resource doesn't exist. Check the endpoint URL and parameters.
429 Too Many Requests Rate limit exceeded. Wait before retrying. Check Retry-After header.
422 Unprocessable Entity Validation failed. Request parameters are invalid or missing required fields.

Authentication Error Examples

Missing API Key (401)

JSON
{ "success": false, "error": { "code": "AUTH_MISSING_KEY", "message": "Authentication credentials not provided.", "resolution": "Include your API key in the Authorization header: Authorization: Bearer sk_live_..." }, "timestamp": "2026-03-21T14:35:22Z" }

Invalid API Key (401)

JSON
{ "success": false, "error": { "code": "AUTH_INVALID_KEY", "message": "Invalid or expired API key.", "resolution": "Generate a new API key from your console at https://smartmoneyapi.com/console" }, "timestamp": "2026-03-21T14:35:22Z" }

Rate Limiting (429)

When you exceed your API quota, the server returns 429 Too Many Requests. Check the response headers for rate limit information:

HTTP Headers
X-Requests-Remaining: 0 X-Requests-Limit: 200 X-Requests-Reset: 1711116922 Retry-After: 3600

Rate Limit Error Response

JSON
{ "success": false, "error": { "code": "RATE_LIMIT_EXCEEDED", "message": "Daily API request limit (200) exceeded.", "resolution": "Upgrade to Trader ($29/month, 3,000 requests/day) or Pro ($79/month, 15,000 requests/day) plan.", "reset_at": "2026-03-22T09:00:00Z" }, "timestamp": "2026-03-21T14:35:22Z" }

Validation Errors (422)

Validation errors occur when your request parameters are invalid or missing required fields.

JSON
{ "success": false, "error": { "code": "VALIDATION_ERROR", "message": "Request validation failed.", "details": [ { "field": "symbol", "error": "Invalid trading pair. Expected format: BTCUSDT" }, { "field": "min_position_size", "error": "Must be a positive number" } ], "resolution": "Fix the validation errors and retry." }, "timestamp": "2026-03-21T14:35:22Z" }

5xx Server Error Codes

Server errors indicate a problem on our side. These are temporary and typically resolve quickly. Implement exponential backoff retry logic.

Code Status Action
500 Internal Error Unexpected server error. Retry with exponential backoff.
502 Bad Gateway Temporary service interruption. Retry after a few seconds.
503 Service Unavailable Maintenance or temporary outage. Check status page. Retry after Retry-After interval.
504 Gateway Timeout Request took too long. The server may have processed it anyway. Check idempotency.

Server Error Example (503)

JSON
{ "success": false, "error": { "code": "SERVICE_UNAVAILABLE", "message": "Service temporarily unavailable due to maintenance.", "resolution": "Please retry after 5 minutes. Track status at https://status.smartmoneyapi.com" }, "timestamp": "2026-03-21T14:35:22Z" }

Troubleshooting Guide

401 Unauthorized - Invalid API Key

Problem: Receiving 401 errors even with an API key.

Solutions:

  • Verify API key is included in the Authorization header with "Bearer" prefix
  • Check that your API key hasn't expired or been revoked
  • Ensure you're using the correct key (production, staging, or development)
  • Generate a new API key from your console if the current one is lost

403 Forbidden - Feature Not Available

Problem: Getting 403 errors on certain endpoints.

Solutions:

  • Check your API tier. Some endpoints require Trader or Pro plans
  • Upgrade your plan at /pricing.html to access premium features
  • Verify the API key has the required scopes enabled
  • Contact support if you believe you should have access

429 Too Many Requests - Rate Limited

Problem: Getting 429 errors and rate limited.

Solutions:

  • Implement exponential backoff retry logic (wait 1s, 2s, 4s, etc.)
  • Cache responses to avoid redundant API calls
  • Use WebSocket for real-time data instead of polling REST endpoints
  • Upgrade your plan for higher quotas (Trader 3,000/day, Pro 15,000/day)
  • Batch multiple queries into single requests where possible

400 Bad Request - Invalid Parameters

Problem: Receiving 400 errors with malformed requests.

Solutions:

  • Check API documentation for required and optional parameters
  • Verify parameter types (strings vs numbers, arrays vs objects)
  • Ensure JSON is valid and properly formatted
  • Use correct endpoint URLs with proper path parameters
  • Check for typos in query parameter names

5xx Server Errors - Temporary Outages

Problem: Getting 500, 502, 503, or 504 errors.

Solutions:

  • Check service status at https://status.smartmoneyapi.com
  • Implement automatic retry with exponential backoff (max 5-10 attempts)
  • Wait 30-60 seconds before retrying 503 errors
  • Use the Retry-After header to determine retry timing
  • Subscribe to status page for incident notifications

Error Response Format

All error responses follow a consistent format:

JSON
{ "success": false, "error": { "code": "ERROR_CODE", "message": "Human-readable error message", "details": {...}, "resolution": "Steps to resolve the issue" }, "timestamp": "2026-03-21T14:35:22Z" }

Need More Help?

Check our API documentation or contact support with your error code and request details.

API Reference

Get Support

Have questions? Check our documentation or reach out to support.

Open Console
Start free — 200 calls/day, no card

Get live whale flow, funding, open interest and on-chain data across 3 exchanges from one API. Free tier, no credit card, upgrade any time.

Start free →
Try the live API console → (no account needed)
Get your API key in 30 seconds

Ready to build? Grab a free API key (200 calls/day, no card) and start pulling live whale, funding and on-chain data.

Get your API key →