What does HTTP/1.1 302 mean exactly?

后端 未结 14 2470
礼貌的吻别
礼貌的吻别 2020-12-02 05:49

Some article I read once said that it means jumping (from one URI to another), but I detected this \"302\" even when there was actually no jumping at all!

14条回答
  •  伪装坚强ぢ
    2020-12-02 06:04

    For anyone who might be curious about the naming, I'm just going to add that it's probably called "Found" because the main resource(e.g., a private web page) the user intends to receive is not available at that moment(e.g., the user has not proved their identity yet), so instead the server has found a new resource that the user can receive(which is a login page in the most common use case).

    Also it's "getting lost and found" in the hide-and-seek manner, meaning a lost resource under a 302 status is only lost temporarily, it is not supposed to be lost forever(unless a player has some bad intentions;)).

提交回复
热议问题