VelaError and include structured metadata.
Error classes
| Error class | HTTP status |
|---|---|
VelaValidationError | 400 |
VelaAuthError | 401 |
VelaForbiddenError | 403 |
VelaNotFoundError | 404 |
VelaRateLimitError | 429 |
VelaError (base) | any other 4xx / 5xx |
Usage
Error properties
EveryVelaError includes:
Network errors
Network errors (DNS failure, timeout, connection refused) propagate as nativeTypeError or DOMException — not wrapped in VelaError. This lets you distinguish transport failures from API errors: