pub enum Error {
}Expand description
Errors returned by the SMSGate client.
Variants§
Client(String)
An unexpected client-side error occurred.
BadRequest(String)
The server rejected the request due to invalid data.
Conflict(String)
The request conflicts with the current state (e.g., duplicate or conflicting fields).
The request requires authentication (HTTP 401).
Forbidden(String)
The server refused the request due to insufficient permissions (HTTP 403).
NotFound(String)
The requested resource was not found (HTTP 404).
UnprocessableEntity(String)
The request was well-formed but semantically invalid (HTTP 422).
TooManyRequests(String)
Too many requests were made in a given amount of time (HTTP 429).
Server(String)
The server returned a 5xx error.
Http(Error)
An HTTP transport error occurred (connection, timeout, etc.).
InvalidConfig(String)
The provided configuration is invalid.
Validation(String)
A value failed client-side validation.
ConflictFields(String)
Two or more mutually exclusive fields were provided.
Json(Error)
JSON serialization or deserialization failed.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()