pub enum ErrorCode {
InvalidJson,
InvalidRequestUrl,
InvalidRequest,
MissionVersion,
Unauthorized,
RestrictedResource,
ObjectNotFound,
ConflictError,
RateLimited,
InternalServerError,
ServiceUnavailable,
Unknown,
}
Variants§
InvalidJson
The request body could not be decoded as JSON.
InvalidRequestUrl
The request URL is not valid.
InvalidRequest
This request is not supported.
MissionVersion
The request body does not match the schema for the expected parameters. Check the “message” property for more details.
The bearer token is not valid.
RestrictedResource
Given the bearer token used, the client doesn’t have permission to perform this operation.
ObjectNotFound
Given the bearer token used, the resource does not exist. This error can also indicate that the resource has not been shared with owner of the bearer token.
ConflictError
The transaction could not be completed, potentially due to a data collision. Make sure the parameters are up to date and try again.
RateLimited
This request exceeds the number of requests allowed. Slow down and try again. More details on rate limits.
InternalServerError
An unexpected error occurred. Reach out to NVD support.
NVD is unavailable. Try again later. This can occur when the time to respond to a request takes longer than 60 seconds, the maximum request timeout.
Unknown
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ErrorCode
impl<'de> Deserialize<'de> for ErrorCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.