pub struct MangaDexError_ {
pub id: Uuid,
pub status: u16,
pub title: Option<String>,
pub detail: Option<String>,
pub context: Option<HashMap<String, String>>,
}
Fields§
§id: Uuid
§status: u16
HTTP status code.
title: Option<String>
Error title.
detail: Option<String>
Description about the error.
context: Option<HashMap<String, String>>
Provides insight into why the request failed.
§Captcha Errors (400)
The error may have been caused by one of the following:
- Captcha challenge result was wrong.
- The Captcha Verification service was down.
- Other, refer to the error message and the
errorCode
value.
§Rate Limit, Captcha Required (403)
Some endpoints may require captchas to proceed, in order to slow down automated malicious traffic. Legitimate users might also be affected, based on the frequency of write requests or due certain endpoints being particularly sensitive to malicious use, such as user signup.
Once an endpoint decides that a captcha needs to be solved,
a 403 Forbidden response will be returned, with the error code captcha_required_exception
.
The sitekey needed for recaptcha to function is provided in both the
X-Captcha-Sitekey
header field, as well as in the error context,
specified as siteKey
parameter.
The captcha result of the client can either be passed into the repeated original request
with the X-Captcha-Result
header or alternatively to the POST /captcha/solve
endpoint.
The time a solved captcha is remembered varies across different endpoints and can also be
influenced by individual client behavior.
Authentication is not required for the POST /captcha/solve
endpoint, captchas are tracked
both by client ip and logged in user id. If you are logged in, you want to send the session
token along, so you validate the captcha for your client ip and user id at the same time,
but it is not required.
Trait Implementations§
Source§impl Clone for MangaDexError_
impl Clone for MangaDexError_
Source§fn clone(&self) -> MangaDexError_
fn clone(&self) -> MangaDexError_
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for MangaDexError_
impl Debug for MangaDexError_
Source§impl<'de> Deserialize<'de> for MangaDexError_
impl<'de> Deserialize<'de> for MangaDexError_
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>,
Source§impl Display for MangaDexError_
impl Display for MangaDexError_
Source§impl Error for MangaDexError_
impl Error for MangaDexError_
1.30.0 · 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
Source§impl PartialEq for MangaDexError_
impl PartialEq for MangaDexError_
impl Eq for MangaDexError_
impl StructuralPartialEq for MangaDexError_
Auto Trait Implementations§
impl Freeze for MangaDexError_
impl RefUnwindSafe for MangaDexError_
impl Send for MangaDexError_
impl Sync for MangaDexError_
impl Unpin for MangaDexError_
impl UnwindSafe for MangaDexError_
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.