Closed WolfgangFahl closed 4 years ago
@WolfgangFahl per your comments on your PR, it was easier to just incorporate your changes. Versions 0.5.0 and later now provide custom exception types for response errors that exposes the HTTP code, reason, and also the cause of the error as reported by the API as attributes and in the exception message.
Description
According to https://lichess.org/api some calls will return error information with a 404 status code e.g. "Authorization header missing".
What I Did
The httpError does not seem to carry any detail information which might be necessary for a proper control flow.