Closed jeremyletang closed 7 years ago
Should we use error codes perhaps?
why not, I just wanted to make at least deprecation a special case that we can catch in a high level way.
Seems like status codes are fine for already deprecated APIs but not ones which are 'soon to be deprecated', but you are talking about the former, right?
Closing this, since the borg api already handles this
In a near future we may need to deprecate some version of the api. We have to decide of an http response to notify the borg user of a future deprecation of the api and possibly an api which is non available anymore. This may required updating api response with something like:
valid response
valid response with deprecation warning
error response for an api not available anymore