Correct HTTP status code when resource is available but not accessible because of permissions

后端 未结 4 1449
被撕碎了的回忆
被撕碎了的回忆 2020-12-20 12:18

I am building a RESTful protocol for Dynamic Carpooling applications, for my Computer Science thesis.

In the Protocol I also have to formally specify the HTTP statu

4条回答
  •  难免孤独
    2020-12-20 12:23

    Definitely NOT 404. 404 is just Not Found.
    401 is access denied.
    403 is forbidden.

    I would go with 401

提交回复
热议问题