[−][src]Trait actix_http::error::ResponseError
Error that can be converted to Response
Provided methods
fn status_code(&self) -> StatusCode
[−]
Response's status code
Internal server error is generated by default.
fn error_response(&self) -> Responseⓘ
[−]
Create response for error
Internal server error is generated by default.
Implementations
impl dyn ResponseError + 'static
[src][−]
pub fn downcast_ref<T: ResponseError + 'static>(&self) -> Option<&T>
[src][−]
Downcasts generic body to a specific type.
pub fn downcast_mut<T: ResponseError + 'static>(&mut self) -> Option<&mut T>
[src][−]
Downcasts a generic body to a mutable specific type.
Implementations on Foreign Types
impl<E: ResponseError> ResponseError for TimeoutError<E>
[src][−]
Return GATEWAY_TIMEOUT
for TimeoutError
fn status_code(&self) -> StatusCode
[src]
impl ResponseError for JsonError
[src]
InternalServerError
for JsonError
impl ResponseError for FormError
[src]
InternalServerError
for FormError
impl ResponseError for SslError
[src]
InternalServerError
for openssl::ssl::Error
impl<T: Debug> ResponseError for HandshakeError<T>
[src]
InternalServerError
for openssl::ssl::HandshakeError
impl ResponseError for DeError
[src][−]
Return BAD_REQUEST
for de::value::Error
fn status_code(&self) -> StatusCode
[src]
impl ResponseError for Utf8Error
[src][−]
Return BAD_REQUEST
for Utf8Error
fn status_code(&self) -> StatusCode
[src]
impl ResponseError for Error
[src][−]
Return InternalServerError
for io::Error
fn status_code(&self) -> StatusCode
[src]
impl<E, U: Encoder<I> + Decoder, I> ResponseError for FramedDispatcherError<E, U, I> where
E: Debug + Display,
<U as Encoder<I>>::Error: Debug,
<U as Decoder>::Error: Debug,
[src]
E: Debug + Display,
<U as Encoder<I>>::Error: Debug,
<U as Decoder>::Error: Debug,
impl ResponseError for MailboxError
[src]
InternalServerError
for actix::MailboxError
This is supported on feature=actors
only
impl ResponseError for ResolverError
[src]
InternalServerError
for actix::ResolverError
This is supported on feature=actors
only
Implementors
impl ResponseError for SendRequestError
[src][+]
fn status_code(&self) -> StatusCode
[src]
impl ResponseError for ContentTypeError
[src][+]
fn status_code(&self) -> StatusCode
[src]
impl ResponseError for actix_http::error::CookieParseError
[src][+]
fn status_code(&self) -> StatusCode
[src]
impl ResponseError for actix_http::error::ParseError
[src][+]
fn status_code(&self) -> StatusCode
[src]
impl ResponseError for PayloadError
[src][+]
fn status_code(&self) -> StatusCode
[src]
impl ResponseError for actix_http::ws::HandshakeError
[src][+]
impl ResponseError for ProtocolError
[src]
impl ResponseError for Canceled
[src]
InternalServerError
for Canceled
impl ResponseError for InvalidHeaderValue
[src][+]
fn status_code(&self) -> StatusCode
[src]
impl ResponseError for HttpError
[src]
Return InternalServerError
for HttpError
,
Response generation can return HttpError
, so it is internal error
impl<E: Debug> ResponseError for BlockingError<E>
[src]
InternalServerError
for BlockingError
impl<T> ResponseError for InternalError<T> where
T: Debug + Display + 'static,
[src][+]
T: Debug + Display + 'static,