I would not change anything in the status code to be backward compatible. I would add a βWarningβ heading in the response:
Warning: 299 - "Deprecated API"
You can also specify a β-β with the βAgentβ that issues the warning, and be more explicit in the warning text:
Warning: 299 api.blazingFrog.com "Deprecated API : use betterapi.blazingFrog.com instead. Old API maintained until 2015-06-02"
A warning header is listed here: https://tools.ietf.org/html/rfc7234#section-5.5 . Warning code 299 is general; Obsolete is not standard.
You need to tell your clients APIs to log HTTP alerts and track them.
I have never used it so far, but when my company becomes more mature in the Rest API, I integrate it.
BenC Apr 14 '15 at 9:29 2015-04-14 09:29
source share