What HTTP status response code should I use if the request is missing a required parameter?

后端 未结 9 1976
心在旅途
心在旅途 2020-11-28 01:15

I am thinking 412 (Precondition Failed) but there may be a better standard?

9条回答
  •  感动是毒
    2020-11-28 01:43

    It could be argued that a 404 Not Found should be used since the resource specified could not be found.

提交回复
热议问题