Trait actix_web::error::ResponseError
[−]
[src]
pub trait ResponseError: Fail { 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 ResponseError for JsonError
[src]
InternalServerError
for JsonError
fn error_response(&self) -> HttpResponse
[src]
impl ResponseError for HttpError
[src]
Return InternalServerError
for HttpError
,
Response generation can return HttpError
, so it is internal error
fn error_response(&self) -> HttpResponse
[src]
impl ResponseError for Error
[src]
Return InternalServerError
for io::Error
fn error_response(&self) -> HttpResponse
[src]
impl ResponseError for InvalidHeaderValue
[src]
InternalServerError
for InvalidHeaderValue
fn error_response(&self) -> HttpResponse
[src]
impl ResponseError for Canceled
[src]
InternalServerError
for futures::Canceled
fn error_response(&self) -> HttpResponse
[src]
Implementors
impl ResponseError for actix_web::error::ParseError
impl ResponseError for PayloadError
impl ResponseError for actix_web::error::CookieParseError
impl ResponseError for HttpRangeError
impl ResponseError for MultipartError
impl ResponseError for ExpectError
impl ResponseError for WsHandshakeError
impl ResponseError for UrlencodedError
impl ResponseError for JsonPayloadError
impl ResponseError for UriSegmentError
impl ResponseError for UrlGenerationError
impl<T> ResponseError for ErrorBadRequest<T> where
T: Send + Sync + Debug + 'static,impl<T> ResponseError for ErrorUnauthorized<T> where
T: Send + Sync + Debug + 'static,impl<T> ResponseError for ErrorForbidden<T> where
T: Send + Sync + Debug + 'static,impl<T> ResponseError for ErrorNotFound<T> where
T: Send + Sync + Debug + 'static,impl<T> ResponseError for ErrorMethodNotAllowed<T> where
T: Send + Sync + Debug + 'static,impl<T> ResponseError for ErrorRequestTimeout<T> where
T: Send + Sync + Debug + 'static,impl<T> ResponseError for ErrorConflict<T> where
T: Send + Sync + Debug + 'static,impl<T> ResponseError for ErrorGone<T> where
T: Send + Sync + Debug + 'static,impl<T> ResponseError for ErrorPreconditionFailed<T> where
T: Send + Sync + Debug + 'static,impl<T> ResponseError for ErrorExpectationFailed<T> where
T: Send + Sync + Debug + 'static,impl<T> ResponseError for ErrorInternalServerError<T> where
T: Send + Sync + Debug + 'static,impl ResponseError for CookieSessionError
impl ResponseError for CorsError