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
fn error_response(&self) -> HttpResponse
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]
impl<T> ResponseError for Compat<T> where
T: Display + Debug + Sync + Send + 'static,
Compatibility for failure::Error
fn error_response(&self) -> HttpResponse
[src]
fn error_response(&self) -> HttpResponse
impl ResponseError for JsonError
[src]
impl ResponseError for JsonError
InternalServerError
for JsonError
fn error_response(&self) -> HttpResponse
[src]
fn error_response(&self) -> HttpResponse
impl ResponseError for TimerError
[src]
impl ResponseError for TimerError
InternalServerError
for TimerError
fn error_response(&self) -> HttpResponse
[src]
fn error_response(&self) -> HttpResponse
impl ResponseError for DeError
[src]
impl ResponseError for DeError
Return BAD_REQUEST
for de::value::Error
fn error_response(&self) -> HttpResponse
[src]
fn error_response(&self) -> HttpResponse
impl ResponseError for Utf8Error
[src]
impl ResponseError for Utf8Error
Return BAD_REQUEST
for Utf8Error
fn error_response(&self) -> HttpResponse
[src]
fn error_response(&self) -> HttpResponse
impl ResponseError for HttpError
[src]
impl ResponseError for HttpError
Return InternalServerError
for HttpError
,
Response generation can return HttpError
, so it is internal error
fn error_response(&self) -> HttpResponse
[src]
fn error_response(&self) -> HttpResponse
impl ResponseError for Error
[src]
impl ResponseError for Error
Return InternalServerError
for io::Error
fn error_response(&self) -> HttpResponse
[src]
fn error_response(&self) -> HttpResponse
impl ResponseError for InvalidHeaderValue
[src]
impl ResponseError for InvalidHeaderValue
BadRequest
for InvalidHeaderValue
fn error_response(&self) -> HttpResponse
[src]
fn error_response(&self) -> HttpResponse
impl ResponseError for InvalidHeaderValueBytes
[src]
impl ResponseError for InvalidHeaderValueBytes
BadRequest
for InvalidHeaderValue
fn error_response(&self) -> HttpResponse
[src]
fn error_response(&self) -> HttpResponse
impl ResponseError for Canceled
[src]
impl ResponseError for Canceled
InternalServerError
for futures::Canceled
fn error_response(&self) -> HttpResponse
[src]
fn error_response(&self) -> HttpResponse
impl ResponseError for MailboxError
[src]
impl ResponseError for MailboxError
InternalServerError
for actix::MailboxError
fn error_response(&self) -> HttpResponse
[src]
fn error_response(&self) -> HttpResponse
Implementors
impl ResponseError for SendRequestError
impl ResponseError for UrlParseError
impl ResponseError for actix_web::error::ParseError
impl ResponseError for PayloadError
impl ResponseError for actix_web::error::CookieParseError
impl ResponseError for MultipartError
impl ResponseError for ExpectError
impl ResponseError for ContentTypeError
impl ResponseError for UrlencodedError
impl ResponseError for JsonPayloadError
impl ResponseError for UriSegmentError
impl ResponseError for UrlGenerationError
impl ResponseError for StaticFileError
impl<T> ResponseError for InternalError<T> where
T: Send + Sync + Debug + Display + 'static,impl ResponseError for CorsError
impl ResponseError for CsrfError
impl ResponseError for CookieSessionError
impl ResponseError for ProtocolError
impl ResponseError for HandshakeError