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

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

Error that can be converted to Response

Provided methods

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

Create response for error

Internal server error is generated by default.

Loading content...

Implementations on Foreign Types

impl ResponseError for Error[src]

Return InternalServerError for io::Error

Loading content...

Implementors

impl ResponseError for HandshakeError[src]

impl ResponseError for ProtocolError[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<E, U: Encoder + Decoder + 'static> ResponseError for DispatcherError<E, U> where
    E: Debug + Display + 'static,
    <U as Encoder>::Error: Debug,
    <U as Decoder>::Error: Debug
[src]

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

Loading content...