Convention for HTTP response header to notify clients of deprecated API

前端 未结 6 663
逝去的感伤
逝去的感伤 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:20

    I would/ have gone with 301 (Moved Permanently) The 300 series codes are supposed to tell the client they have an action to do.

提交回复
热议问题