fix(api): Fix API error handling
Errors were throwing the whole response object, instead of error data. Also consolidated repeated code chunks for different request methods.
parent
83fc9145
Please register or sign in to comment
Errors were throwing the whole response object, instead of error data. Also consolidated repeated code chunks for different request methods.