Add API Version check endpoint

This commit is contained in:
Anthony Oteri
2023-09-14 10:03:10 -04:00
parent 00a1ad87e7
commit 9445c9e817
5 changed files with 117 additions and 1 deletions
+12
View File
@@ -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 {