[−][src]Trait ntex::http::error::ResponseError
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.
Implementations on Foreign Types
impl ResponseError for Error
[src]
Return InternalServerError
for io::Error
Implementors
impl ResponseError for HandshakeError
[src]
pub fn error_response(&self) -> Response
[src]
impl ResponseError for ProtocolError
[src]
impl ResponseError for ntex::web::error::Error
[src]
pub 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
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]
E: Debug + Display + 'static,
<U as Encoder>::Error: Debug,
<U as Decoder>::Error: Debug,
impl<T, E> ResponseError for InternalError<T, E> where
T: Debug + Display + 'static,
E: ErrorRenderer,
[src]
T: Debug + Display + 'static,
E: ErrorRenderer,