There is an IETF draft "The Deprecation HTTP Header Field" which recommends adding special HTTP-headers to server response.
Examples
The first example shows a deprecation header field without date information:
Deprecation: true
The second example shows a deprecation header with date information and a link to the successor version:
Deprecation: Sun, 11 Nov 2018 23:59:59 GMT
Link: <https://api.example.com/v2/customers>; rel="successor-version"
The third example shows a deprecation header field with links for the successor version and for the API’s deprecation policy. In addition, it shows the sunset date for the deprecated resource:
Deprecation: Sun, 11 Nov 2018 23:59:59 GMT
Sunset: Wed, 11 Nov 2020 23:59:59 GMT
Link: <https://api.example.com/v2/customers>; rel="successor-version", <https://developer.example.com/deprecation>; rel="deprecation"
Warning
header is now deprecated. – Advertise