kube
kube copied to clipboard
Merge ApiStatus + ErrorResponse
Follow up from #36
Currently Status and ErrorResponse are the same underlying object in kube AFAIKT, but are returned in different contexts:
ErrorResponsewhen!request.is_success()(and you need to grab it out of the Error)Statuswhenrequest.is_success() and is_right()
We should standardise this to reduce duplication.
Edited this issue as ApiError was renamed to ErrorResponse when moving to thiserror.