Trait actix_web::error::ResponseError[][src]

pub trait ResponseError: Fail + InternalResponseErrorAsFail {
    fn error_response(&self) -> HttpResponse { ... }
}

Error that can be converted to HttpResponse

Provided Methods

Create response for error

Internal server error is generated by default.

Implementations on Foreign Types

impl<T> ResponseError for Compat<T> where
    T: Display + Debug + Sync + Send + 'static, 
[src]

Compatibility for failure::Error

impl ResponseError for JsonError
[src]

InternalServerError for JsonError

impl ResponseError for TimerError
[src]

InternalServerError for TimerError

impl ResponseError for DeError
[src]

Return BAD_REQUEST for de::value::Error

impl ResponseError for Utf8Error
[src]

Return BAD_REQUEST for Utf8Error

impl ResponseError for HttpError
[src]

Return InternalServerError for HttpError, Response generation can return HttpError, so it is internal error

impl ResponseError for Error
[src]

Return InternalServerError for io::Error

impl ResponseError for InvalidHeaderValue
[src]

BadRequest for InvalidHeaderValue

impl ResponseError for InvalidHeaderValueBytes
[src]

BadRequest for InvalidHeaderValue

impl ResponseError for Canceled
[src]

InternalServerError for futures::Canceled

impl ResponseError for MailboxError
[src]

InternalServerError for actix::MailboxError

Implementors