campaignmonitor/createsend-python

Stop hiding HTTP status codes

MarkBird opened this issue · 1 comments

If the API returns a status code beginning 4, the library raises a ClientError.
If it returns a status code beginning 5, the library raises a ServerError.

Why is it not including the HTTP status code in the error?? It's impossible to see what the actual error was if you just return an empty exception with literally no information in it.

This library is just overengineered for no reason. Classes everywhere, my head is just spinning for something so simple.