feat: implement backend API clients for multi-marketplace integration and frontend service layer

This commit is contained in:
2026-05-12 13:16:14 +03:00
parent 6974af486a
commit ee39a3d83b
65 changed files with 2501 additions and 33 deletions

View File

@@ -0,0 +1,19 @@
class YMAPIError(Exception):
"""Base exception for all Yandex Market API errors."""
pass
class YMAuthError(YMAPIError):
"""Raised when authentication fails (HTTP 401 or 403)."""
pass
class YMRateLimitError(YMAPIError):
"""Raised when API rate limits are exceeded (HTTP 429)."""
pass
class YMBadRequestError(YMAPIError):
"""Raised when API returns HTTP 400 (Bad Request)."""
pass
class YMNotFoundError(YMAPIError):
"""Raised when API returns HTTP 404 (Not Found)."""
pass