Convention for HTTP response header to notify clients of deprecated API

前端 未结 6 630
逝去的感伤
逝去的感伤 2020-12-23 16:00

I\'m upgrading our REST API endpoints and I want to notify clients when they are calling the to-be-deprecated endpoint.
What header should I use in the response with a m

6条回答
  •  有刺的猬
    2020-12-23 16:16

    I'd recommend a 207 Multi-Status response, indicating that it's a successful response, but it also potentially has a second deprecated status.

提交回复
热议问题