feat(api): complete phase 9 mobile contracts

This commit is contained in:
poyrazavsever
2026-07-17 09:38:22 +03:00
parent 46a746d2d4
commit b04031a3e3
25 changed files with 4896 additions and 19 deletions
+3 -1
View File
@@ -6,7 +6,8 @@ export type DomainErrorCode =
| "CONFLICT"
| "INVARIANT_VIOLATION"
| "UPSTREAM_ERROR"
| "UPSTREAM_TIMEOUT";
| "UPSTREAM_TIMEOUT"
| "SERVICE_UNAVAILABLE";
const statusByCode: Record<DomainErrorCode, number> = {
VALIDATION_ERROR: 400,
@@ -17,6 +18,7 @@ const statusByCode: Record<DomainErrorCode, number> = {
INVARIANT_VIOLATION: 422,
UPSTREAM_ERROR: 502,
UPSTREAM_TIMEOUT: 504,
SERVICE_UNAVAILABLE: 503,
};
export class DomainError extends Error {