Right HTTP status code to wrong input

前端 未结 6 1296
隐瞒了意图╮
隐瞒了意图╮ 2020-12-12 11:58

What is optimal HTTP response Code when not reporting 200 (everything OK) but error in input?

Like, you submit some data to server, and it will response that your da

6条回答
  •  执念已碎
    2020-12-12 12:23

    404 - Not Found - can be used for The URI requested is invalid or the resource requested such as a user, does not exists.

提交回复
热议问题