Overview
The Rampnow API returns standard HTTP status codes to indicate the success or failure of API requests. These codes are returned by the server and provide immediate feedback about your request.API Status Code Categories
2xx - Success
200 OK
200 OK
201 Created
201 Created
204 No Content
204 No Content
4xx - Client Errors
400 Bad Request
400 Bad Request
- Missing required fields
- Invalid JSON format
- Incorrect data types
401 Unauthorized
401 Unauthorized
403 Forbidden
403 Forbidden
- Insufficient account permissions
- API key doesn’t have required scope
- IP address not whitelisted
404 Not Found
404 Not Found
- Incorrect endpoint URL
- Invalid resource ID
- Resource has been deleted
422 Unprocessable Entity
422 Unprocessable Entity
- Business logic validation failed
- Invalid currency pair
- Amount outside allowed range
429 Too Many Requests
429 Too Many Requests
Retry-After header for guidance.5xx - Server Errors
500 Internal Server Error
500 Internal Server Error
502 Bad Gateway
502 Bad Gateway
503 Service Unavailable
503 Service Unavailable
504 Gateway Timeout
504 Gateway Timeout
Status Code Reference Table
| Status Code | Status Text | Category | Description |
|---|---|---|---|
| 200 | OK | Success | Request successful |
| 201 | Created | Success | Resource created successfully |
| 204 | No Content | Success | Success with no response body |
| 400 | Bad Request | Client Error | Invalid request format or parameters |
| 401 | Unauthorized | Client Error | Authentication required or failed |
| 403 | Forbidden | Client Error | Access denied |
| 404 | Not Found | Client Error | Resource not found |
| 422 | Unprocessable Entity | Client Error | Validation error |
| 429 | Too Many Requests | Client Error | Rate limit exceeded |
| 500 | Internal Server Error | Server Error | Unexpected server error |
| 502 | Bad Gateway | Server Error | Invalid upstream response |
| 503 | Service Unavailable | Server Error | Service temporarily unavailable |
| 504 | Gateway Timeout | Server Error | Upstream server timeout |
API Error Code categories
The Rampnow API uses standardized error codes to indicate the success or failure of requests. All error responses include a numeric code to help you identify and handle specific error conditions.Success Response
0Request completed successfully.Client Errors (100000-100019)
NotFoundErr - 100000
NotFoundErr - 100000
NotAuthenticatedErr - 100001
NotAuthenticatedErr - 100001
NotAuthorizedErr - 100002
NotAuthorizedErr - 100002
InvalidArgsErr - 100004
InvalidArgsErr - 100004
ConflictErr - 100005
ConflictErr - 100005
ExpiredErr - 100014
ExpiredErr - 100014
InvalidErr - 100015
InvalidErr - 100015
MfaRequiredErr - 100016
MfaRequiredErr - 100016
RequestErr - 100017
RequestErr - 100017
BlockedErr - 100018
BlockedErr - 100018
BlacklistedErr - 100019
BlacklistedErr - 100019
Operational Errors (100020-100023)
RetryExceededErr - 100020
RetryExceededErr - 100020
NotSupportedErr - 100021
NotSupportedErr - 100021
MfaSetupRequiredErr - 100022
MfaSetupRequiredErr - 100022
InvalidQuoteErr - 100023
InvalidQuoteErr - 100023
Server Errors (100024-100032)
ServerErr - 100024
ServerErr - 100024
RequestTimeoutErr - 100025
RequestTimeoutErr - 100025
PayloadSizeErr - 100026
PayloadSizeErr - 100026
RateLimitErr - 100027
RateLimitErr - 100027
BadGatewayErr - 100028
BadGatewayErr - 100028
ServiceUnavailableErr - 100029
ServiceUnavailableErr - 100029
GatewayTimeoutErr - 100030
GatewayTimeoutErr - 100030
InvalidMethodErr - 100031
InvalidMethodErr - 100031
UnprocessableEntityErr - 100032
UnprocessableEntityErr - 100032
System Errors (100003, 100006-100013)
UnknownErr - 100003
UnknownErr - 100003
DbErr - 100006
DbErr - 100006
MarshalErr - 100007
MarshalErr - 100007
InternalErr - 100008
InternalErr - 100008
HttpErr - 100009
HttpErr - 100009
SetupErr - 100010
SetupErr - 100010
NotImplementedErr - 100011
NotImplementedErr - 100011
ExtApiErr - 100012
ExtApiErr - 100012
TimeoutErr - 100013
TimeoutErr - 100013
Quick Reference Table
| Code | Error Name | Category | Description |
|---|---|---|---|
| 0 | Success | Success | Request completed successfully |
| 100000 | NotFoundErr | Client | Resource not found |
| 100001 | NotAuthenticatedErr | Client | Authentication failed |
| 100002 | NotAuthorizedErr | Client | Authorization failed |
| 100003 | UnknownErr | System | Unknown error |
| 100004 | InvalidArgsErr | Client | Invalid arguments |
| 100005 | ConflictErr | Client | Resource conflict |
| 100006 | DbErr | System | Database error |
| 100007 | MarshalErr | System | Serialization error |
| 100008 | InternalErr | System | Internal error |
| 100009 | HttpErr | System | HTTP error |
| 100010 | SetupErr | System | Setup error |
| 100011 | NotImplementedErr | System | Not implemented |
| 100012 | ExtApiErr | System | External API error |
| 100013 | TimeoutErr | System | Timeout error |
| 100014 | ExpiredErr | Client | Resource expired |
| 100015 | InvalidErr | Client | Invalid data |
| 100016 | MfaRequiredErr | Client | MFA required |
| 100017 | RequestErr | Client | Request error |
| 100018 | BlockedErr | Client | Account blocked |
| 100019 | BlacklistedErr | Client | Resource blacklisted |
| 100020 | RetryExceededErr | Operational | Retry limit exceeded |
| 100021 | NotSupportedErr | Operational | Not supported |
| 100022 | MfaSetupRequiredErr | Operational | MFA setup required |
| 100023 | InvalidQuoteErr | Operational | Invalid quote |
| 100024 | ServerErr | Server | Server error |
| 100025 | RequestTimeoutErr | Server | Request timeout |
| 100026 | PayloadSizeErr | Server | Payload too large |
| 100027 | RateLimitErr | Server | Rate limit exceeded |
| 100028 | BadGatewayErr | Server | Bad gateway |
| 100029 | ServiceUnavailableErr | Server | Service unavailable |
| 100030 | GatewayTimeoutErr | Server | Gateway timeout |
| 100031 | InvalidMethodErr | Server | Invalid HTTP method |
| 100032 | UnprocessableEntityErr | Server | Unprocessable entity |