Overview
This guide covers all error codes, their meanings, and how to handle them properly in your BOOP Network integration. Proper error handling ensures a smooth user experience even when things go wrong.Error Response Format
All BOOP Network errors follow a consistent format:Error Categories
Authentication Errors (AUTH_*)
Errors related to user authentication and palm vein scanning:| Code | Message | Cause | Solution |
|---|---|---|---|
AUTH_FAILED | Authentication failed | Palm scan didn’t match | User should try again |
AUTH_TIMEOUT | Authentication timeout | User took too long | Create new context |
AUTH_USER_NOT_FOUND | User not found | User not registered | Direct to registration |
AUTH_BIOMETRIC_QUALITY | Poor scan quality | Bad palm placement | Guide user to rescan |
AUTH_DEVICE_ERROR | Scanner malfunction | Hardware issue | Check PVS device |
AUTH_CONTEXT_EXPIRED | Context expired | Took too long to scan | Create new context |
AUTH_CONTEXT_NOT_FOUND | Context not found | Invalid context ID | Verify context creation |
Vendor Errors (VENDOR_*)
Errors related to vendor configuration and permissions:| Code | Message | Cause | Solution |
|---|---|---|---|
VENDOR_NOT_FOUND | Vendor not found | Invalid vendor ID | Check credentials |
VENDOR_SUSPENDED | Vendor suspended | Account suspended | Contact support |
VENDOR_INVALID_KEY | Invalid API key | Wrong/expired key | Update API key |
VENDOR_RATE_LIMIT | Rate limit exceeded | Too many requests | Implement backoff |
VENDOR_PERMISSION_DENIED | Permission denied | Missing permissions | Review vendor config |
VENDOR_ATTRIBUTE_DENIED | Attribute access denied | Can’t access attribute | Update permissions |
Network Errors (NET_*)
Connection and communication errors:| Code | Message | Cause | Solution |
|---|---|---|---|
NET_CONNECTION_FAILED | Connection failed | Can’t reach server | Check network |
NET_TIMEOUT | Request timeout | Server didn’t respond | Retry request |
NET_WEBSOCKET_CLOSED | WebSocket closed | Connection dropped | Reconnect |
NET_INVALID_MESSAGE | Invalid message format | Malformed data | Check message format |
NET_PROTOCOL_ERROR | Protocol error | Version mismatch | Update SDK |
Validation Errors (VAL_*)
Input validation and data format errors:| Code | Message | Cause | Solution |
|---|---|---|---|
VAL_MISSING_FIELD | Required field missing | Missing parameter | Add required field |
VAL_INVALID_FORMAT | Invalid format | Wrong data type | Fix data format |
VAL_INVALID_CONTEXT_TYPE | Invalid context type | Unknown type | Use valid type |
VAL_INVALID_ATTRIBUTE | Invalid attribute | Unknown attribute | Check attribute list |
VAL_AMOUNT_INVALID | Invalid amount | Negative/wrong format | Validate amount |
System Errors (SYS_*)
Internal system errors:| Code | Message | Cause | Solution |
|---|---|---|---|
SYS_INTERNAL_ERROR | Internal server error | Server issue | Retry later |
SYS_DATABASE_ERROR | Database error | DB unavailable | Retry later |
SYS_SERVICE_UNAVAILABLE | Service unavailable | Maintenance/outage | Check status page |
SYS_MPC_FAILED | MPC operation failed | Computation error | Retry request |
SYS_OVERLOADED | System overloaded | High load | Implement backoff |