http-api-problem icon indicating copy to clipboard operation
http-api-problem copied to clipboard

A problem type to be returned by HTTP APIs

Results 5 http-api-problem issues
Sort by recently updated
recently updated
newest added

* Only directly accept `StatusCode` * Add function accepting `TryFrom` * Add tide support

Currently `ApiError` mandates explicit status code. In many cases middleware may just know problem-type and, let higher layers act based on problem type. Thus status-code is not known always. Though...

See https://github.com/juhaku/utoipa/issues/590. It would be useful to allow `utoipa` to support RFC-7807 through this library.

The hyper was updated to 1.x major (currently 1.4). Has breaking changes. Currently http-api-problem depends on 0.14.

See [hyper::Error](https://docs.rs/hyper/latest/hyper/struct.Error.html) documentation. It provides many `is_xyz` methods which seem to describe some private enum. The question is: is there enough information to canonically convert a `hyper::Error` into an `ApiError`?...