killbill-client-java icon indicating copy to clipboard operation
killbill-client-java copied to clipboard

Java Client should not return null for 404 responses

Open steven-barnes opened this issue 1 year ago • 1 comments

For code like:

subscriptionApi.getSubscriptionByKey("xyzzy", requestOptions)

The client returns null on 404 errors. This is unexpected. The client should throw a KillBillClientException containing the response code.

steven-barnes avatar Nov 15 '24 21:11 steven-barnes

Yes, we've talked about enhancing this in the past. This behaviour has been in place for 12+ years though, so it'd be a large breaking change.

pierre avatar Nov 16 '24 09:11 pierre