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

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 FormError
[src]

InternalServerError for FormError

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 Canceled
[src]

InternalServerError for futures::Canceled

Implementors

impl ResponseError for MailboxError
[src]

InternalServerError for actix::MailboxError

impl ResponseError for SendRequestError
[src]

Convert SendRequestError to a HttpResponse

impl ResponseError for ContentTypeError
[src]

Return BadRequest for ContentTypeError

impl ResponseError for actix_web::error::CookieParseError
[src]

Return BadRequest for cookie::ParseError

impl ResponseError for ExpectError
[src]

impl ResponseError for JsonPayloadError
[src]

Return BadRequest for UrlencodedError

impl ResponseError for MultipartError
[src]

Return BadRequest for MultipartError

impl ResponseError for actix_web::error::ParseError
[src]

Return BadRequest for ParseError

impl ResponseError for PayloadError
[src]

PayloadError returns two possible results:

  • Overflow returns PayloadTooLarge
  • Other errors returns BadRequest

impl ResponseError for StaticFileError
[src]

Return NotFound for StaticFileError

impl ResponseError for UriSegmentError
[src]

Return BadRequest for UriSegmentError

impl ResponseError for UrlGenerationError
[src]

InternalServerError for UrlGeneratorError

impl ResponseError for UrlParseError
[src]

InternalServerError for UrlParseError

impl ResponseError for UrlencodedError
[src]

Return BadRequest for UrlencodedError

impl ResponseError for CorsError
[src]

impl ResponseError for CsrfError
[src]

impl ResponseError for CookieSessionError
[src]

impl ResponseError for HandshakeError
[src]

impl ResponseError for ProtocolError
[src]

impl ResponseError for InvalidHeaderValue
[src]

BadRequest for InvalidHeaderValue

impl ResponseError for InvalidHeaderValueBytes
[src]

BadRequest for InvalidHeaderValue

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