pub enum SolariErrorCode {
FeatureRequiresPlan,
ConcurrencyLimitExceeded,
PlanLimitExceeded,
BrowserUnhealthy,
InvalidSessionId,
ProxyTierUnavailable,
Other(String),
}Expand description
Machine-readable error codes the API returns in a { "code": … } body.
Mirrors the TypeScript SolariErrorCode union. Unknown codes are preserved
verbatim in SolariErrorCode::Other rather than dropped — the wire is
allowed to grow new codes without breaking this crate.
Variants§
FeatureRequiresPlan
The org’s plan does not include the requested feature (e.g. captcha).
ConcurrencyLimitExceeded
The org is at its concurrent-session cap.
PlanLimitExceeded
A plan quota (minutes, profiles, …) is exhausted.
BrowserUnhealthy
The acquired browser failed its health check.
InvalidSessionId
The gateway refused a session id (malformed, forged, or another org’s)
and acted on nothing. Only meaningful on a 404 — see crate::Sessions::release
for why that is not blanket-success.
POST /sessions 503: a proxy tier you explicitly requested cannot be served right now. No session
was created. The client does not retry it.
Other(String)
A code this crate does not know about.