REST HTTP status codes for failed validation or invalid duplicate

前端 未结 9 1848
借酒劲吻你
借酒劲吻你 2020-11-22 13:53

I am building an application with a REST-based API and have come to the point where I am specifying status codes for each requests.

What status code should i send for

9条回答
  •  攒了一身酷
    2020-11-22 14:25

    406 - Not Acceptable

    Which means this response is sent when the web server, after performing server-driven content negotiation, doesn't find any content that conforms to the criteria given by the user agent.

提交回复
热议问题