INNER CODE UNIT · Python

ErrorModel

smagafurov/fastapi-jsonrpc · fastapi_jsonrpc/__init__.py:383

class ErrorModel(BaseModel):
    loc: List[Union[str, int]]
    msg: str
    type: str
    ctx: Optional[Dict[str, Any]] = None


class ParseError(BaseError):
    """Invalid JSON was received by the server"""
    CODE = -32700
    MESSAGE = "Parse error"


class InvalidRequest(BaseError):
    """The JSON sent is not a valid Request object"""
    CODE = -32600
    MESSAGE = "Invalid Request"
    error_model = ErrorModel

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…