You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(api,ssh,pkg): standardize error handling in internal http client
It refactors the internal client to standardize error handling and
improve its structure. A new error type is introduced to encapsulate
HTTP response details, including the status code, which was previously
returned as a separate value. This simplifies the client's function
signatures and makes error handling more consistent.
The configuration has been extracted into a dedicated file with default
values, and the now-redundant WithConfig option has been removed. All
client methods have been updated to use the new error handling and
configuration, and the corresponding mocks and usages have been adjusted
accordingly.
0 commit comments