feat(storage): add private object storage and bounded image uploads

This commit is contained in:
2026-11-15 20:16:06 +03:00
parent ec540a1a72
commit f449033e15
51 changed files with 5196 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
class DomainError(Exception):
def __init__(
self, status: int, code: str, message: str, headers=None
) -> None:
self.status = status
self.code = code
self.message = message
self.headers = headers or {}
def invalid() -> DomainError:
return DomainError(400, "invalid_request", "Invalid request")
def not_found() -> DomainError:
return DomainError(404, "not_found", "Resource not found")