-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Right now, you need to totally override the request reader if you want to read custom error types. It should be more simple to try and marshal into errors. Perhaps a request option:
var resp int
var myerr *MyCustomError
client.Get("/path", &resp, rclient.Error(&myerr))
Another option could map status codes to types:
client.Get("/path", &resp, rclient.StatusMap(
series.Ints(200, 299): &someType,
series.Ints(400, 499): &someError,
series.Ints(500, 599): &someOtherError,
))
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels