mirror of
https://github.com/anthonyoteri/dredge.git
synced 2026-06-05 15:26:53 -04:00
Add API Version check endpoint
This commit is contained in:
@@ -60,6 +60,18 @@ pub enum ApiError {
|
||||
|
||||
#[error("Failed to parse response headers")]
|
||||
ResponseHeaderParseError(Box<dyn std::error::Error>),
|
||||
|
||||
#[error("Version Mismatch {0}")]
|
||||
UnsupportedVersion(String),
|
||||
|
||||
#[error("Unexpected response from API: {0}")]
|
||||
UnexpectedResponse(String),
|
||||
|
||||
#[error("HTTP Authorization failed")]
|
||||
AuthorizationFailed,
|
||||
|
||||
#[error("Resource not found")]
|
||||
NotFound,
|
||||
}
|
||||
|
||||
impl From<reqwest::header::ToStrError> for ApiError {
|
||||
|
||||
Reference in New Issue
Block a user