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
The response object has a #responsecode, implying that you might find a code other than 200 there.
But if the API returns a 5xx (say, because I didn't give it the right secret key), I don't get back a response with a 5xx responsecode... I get an exception raised.
Would it make more sense to make this not raise but return a non-200 response code? Or to make it a call option? Or to at least document in what cases one should expect an exception (of what class) to be raised?
The text was updated successfully, but these errors were encountered:
The response object has a #responsecode, implying that you might find a code other than 200 there.
But if the API returns a 5xx (say, because I didn't give it the right secret key), I don't get back a response with a 5xx responsecode... I get an exception raised.
Would it make more sense to make this not raise but return a non-200 response code? Or to make it a call option? Or to at least document in what cases one should expect an exception (of what class) to be raised?
The text was updated successfully, but these errors were encountered: