[−][src]Trait actix_web::error::ResponseError
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]
T: Display + Debug + Sync + Send + 'static,
Compatibility for failure::Error
fn error_response(&self) -> HttpResponse
[src]
impl ResponseError for JsonError
[src]
InternalServerError
for JsonError
fn error_response(&self) -> HttpResponse
[src]
impl ResponseError for FormError
[src]
InternalServerError
for FormError
fn error_response(&self) -> HttpResponse
[src]
impl ResponseError for TimerError
[src]
InternalServerError
for TimerError
fn error_response(&self) -> HttpResponse
[src]
impl ResponseError for DeError
[src]
Return BAD_REQUEST
for de::value::Error
fn error_response(&self) -> HttpResponse
[src]
impl ResponseError for Utf8Error
[src]
Return BAD_REQUEST
for Utf8Error
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 Canceled
[src]
InternalServerError
for futures::Canceled
fn error_response(&self) -> HttpResponse
[src]
Implementors
impl ResponseError for MailboxError
[src]
InternalServerError
for actix::MailboxError
fn error_response(&self) -> HttpResponse
[src]
impl ResponseError for SendRequestError
[src]
Convert SendRequestError
to a HttpResponse
fn error_response(&self) -> HttpResponse
[src]
impl ResponseError for ContentTypeError
[src]
Return BadRequest
for ContentTypeError
fn error_response(&self) -> HttpResponse
[src]
impl ResponseError for actix_web::error::CookieParseError
[src]
Return BadRequest
for cookie::ParseError
fn error_response(&self) -> HttpResponse
[src]
impl ResponseError for ExpectError
[src]
fn error_response(&self) -> HttpResponse
[src]
impl ResponseError for JsonPayloadError
[src]
Return BadRequest
for UrlencodedError
fn error_response(&self) -> HttpResponse
[src]
impl ResponseError for MultipartError
[src]
Return BadRequest
for MultipartError
fn error_response(&self) -> HttpResponse
[src]
impl ResponseError for actix_web::error::ParseError
[src]
Return BadRequest
for ParseError
fn error_response(&self) -> HttpResponse
[src]
impl ResponseError for PayloadError
[src]
PayloadError
returns two possible results:
Overflow
returnsPayloadTooLarge
- Other errors returns
BadRequest
fn error_response(&self) -> HttpResponse
[src]
impl ResponseError for StaticFileError
[src]
Return NotFound
for StaticFileError
fn error_response(&self) -> HttpResponse
[src]
impl ResponseError for UriSegmentError
[src]
Return BadRequest
for UriSegmentError
fn error_response(&self) -> HttpResponse
[src]
impl ResponseError for UrlGenerationError
[src]
InternalServerError
for UrlGeneratorError
fn error_response(&self) -> HttpResponse
[src]
impl ResponseError for UrlParseError
[src]
InternalServerError
for UrlParseError
fn error_response(&self) -> HttpResponse
[src]
impl ResponseError for UrlencodedError
[src]
Return BadRequest
for UrlencodedError
fn error_response(&self) -> HttpResponse
[src]
impl ResponseError for CorsError
[src]
fn error_response(&self) -> HttpResponse
[src]
impl ResponseError for CsrfError
[src]
fn error_response(&self) -> HttpResponse
[src]
impl ResponseError for CookieSessionError
[src]
fn error_response(&self) -> HttpResponse
[src]
impl ResponseError for HandshakeError
[src]
fn error_response(&self) -> HttpResponse
[src]
impl ResponseError for ProtocolError
[src]
fn error_response(&self) -> HttpResponse
[src]
impl ResponseError for InvalidHeaderValue
[src]
BadRequest
for InvalidHeaderValue
fn error_response(&self) -> HttpResponse
[src]
impl ResponseError for InvalidHeaderValueBytes
[src]
BadRequest
for InvalidHeaderValue
fn error_response(&self) -> HttpResponse
[src]
impl<T> ResponseError for SendError<T> where
T: Send + Sync + 'static,
[src]
T: Send + Sync + 'static,
fn error_response(&self) -> HttpResponse
[src]
impl<T> ResponseError for InternalError<T> where
T: Send + Sync + Debug + Display + 'static,
[src]
T: Send + Sync + Debug + Display + 'static,