Skip to main content

Module constants

Module constants 

Source
Expand description

HTTP-specific constants for the x402 protocol.

Corresponds to Python SDK’s http/constants.py.

Constants§

ACCESS_CONTROL_EXPOSE_HEADERS
CORS header name for exposing custom headers.
DEFAULT_FACILITATOR_URL
Default CDP facilitator service URL.
HTTP_STATUS_PAYMENT_REQUIRED
HTTP 402 Payment Required status code.
PAYMENT_REQUIRED_HEADER
HTTP header for 402 payment requirements (server → client).
PAYMENT_RESPONSE_HEADER
HTTP header for settlement results (server → client).
PAYMENT_SIGNATURE_HEADER
HTTP header for V2 payment signatures (client → server).
X_PAYMENT_HEADER
V1 legacy header for payment payload (client → server).
X_PAYMENT_RESPONSE_HEADER
V1 legacy header for settlement results.