Skip to main content

Module errors

Module errors 

Source
Expand description

ThetaData HTTP/gRPC error code mapping.

The MDDS server returns numeric error codes in HTTP status and gRPC metadata. This module maps those codes to human-readable names and descriptions.

Structs§

ThetaDataError
A ThetaData error code with its HTTP status, short name, and description.

Functions§

error_from_grpc_metadata
Extract an http_status_code from gRPC metadata text and look it up.
error_from_http_code
Look up a ThetaDataError by its HTTP status code.
error_name
Human-readable error name for an HTTP status code, or "UNKNOWN".