#[non_exhaustive]pub enum GatewayError {
Bind(String, Error),
Server(Error),
MissingAuthToken,
}Expand description
Errors that can be returned by the HTTP gateway.
All variants implement std::error::Error via thiserror.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Bind(String, Error)
The server could not bind to the requested address.
The first field is the address string (e.g. "127.0.0.1:8080") and the
second is the underlying I/O error.
Server(Error)
The axum server returned a fatal error after binding succeeded.
This typically indicates a listener failure or an OS-level socket error.
MissingAuthToken
The gateway is enabled but no bearer token was configured (#6487).
POST /webhook forwards its body directly into the agent’s turn loop as if it came
from a trusted channel — starting without a token would let any local or network
caller that can reach the listener inject arbitrary content. Set [gateway] auth_token
(resolved from the age vault key ZEPH_GATEWAY_TOKEN) before starting the gateway.
Trait Implementations§
Source§impl Debug for GatewayError
impl Debug for GatewayError
Source§impl Display for GatewayError
impl Display for GatewayError
Source§impl Error for GatewayError
impl Error for GatewayError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()