Trait ntex::http::error::ResponseError[][src]

pub trait ResponseError: Display + Debug {
    fn error_response(&self) -> Response { ... }
}
Expand description

Error that can be converted to Response

Provided methods

fn error_response(&self) -> Response[src]

Create response for error

Internal server error is generated by default.

Implementations on Foreign Types

impl<'a, T: ResponseError> ResponseError for &'a T[src]

impl ResponseError for Error[src]

Return InternalServerError for io::Error

Implementors

impl ResponseError for ProtocolError[src]

impl ResponseError for HandshakeError[src]

impl ResponseError for ntex::web::error::Error[src]

impl ResponseError for HttpError[src]

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

impl ResponseError for ntex::web::error::JsonError[src]

InternalServerError for JsonError

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