Buckets:

download
raw
1.11 kB
from typing import Any
from fastapi import HTTPException, status
class OpenHandsError(HTTPException):
"""General Error"""
def __init__(
self,
detail: Any = None,
headers: dict[str, str] | None = None,
status_code: int = status.HTTP_500_INTERNAL_SERVER_ERROR,
):
super().__init__(status_code=status_code, detail=detail, headers=headers)
class AuthError(OpenHandsError):
"""Error in authentication."""
def __init__(
self,
detail: Any = None,
headers: dict[str, str] | None = None,
status_code: int = status.HTTP_401_UNAUTHORIZED,
):
super().__init__(status_code=status_code, detail=detail, headers=headers)
class PermissionsError(OpenHandsError):
"""Error in permissions."""
def __init__(
self,
detail: Any = None,
headers: dict[str, str] | None = None,
status_code: int = status.HTTP_403_FORBIDDEN,
):
super().__init__(status_code=status_code, detail=detail, headers=headers)
class SandboxError(OpenHandsError):
"""Error in Sandbox."""

Xet Storage Details

Size:
1.11 kB
·
Xet hash:
fd560e5035da29dec8b3eb0fe35be79dc879e65d26404ece6d4a8a9f5aec7a42

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.