deislabs / bindle

Bindle: Object Storage for Collections
Apache License 2.0
263 stars 37 forks source link

Better error on Bad Request #277

Closed thomastaylor312 closed 2 years ago

thomastaylor312 commented 2 years ago

Right now we have a hardcoded error in the client for when a server returns a 400 status code:

The request could not be handled by the server. Verify your Bindle server URL

This can be very misleading for cases like trying to create a parcel that doesn't exist in the invoice (which returns a 400). This error should be updated to use the returned error message.