mega changes

This commit is contained in:
2025-11-20 11:11:18 +01:00
parent e070c95190
commit 841d79f26b
138 changed files with 21499 additions and 8844 deletions

View File

@@ -46,7 +46,7 @@ async function request<T = any>(method: string, url: string, body?: any, extraIn
if (status === 401) throw makeError('Unauthorized', 'UNAUTHORIZED', status, details)
if (status === 403) throw makeError('Forbidden', 'FORBIDDEN', status, details)
if (status === 404) throw makeError('Not found', 'NOT_FOUND', status, details)
if (status === 400) throw makeError('Validation error', 'VALIDATION_ERROR', status, details)
if (status === 400 || status === 422) throw makeError('Validation error', 'VALIDATION_ERROR', status, details)
throw makeError('Request failed', 'UNKNOWN', status, details)
}