32. http状态码 应用场景 #646
Unanswered
ly525
asked this question in
API 协议|规范|请求(库)
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
Answer
502 bad gateway
400 bad request
Django settings allow hosts
没有允许该IP的访问302
Django中的login_required中是使用了302跳转来完成重定向操作
login_required('/login') => user_passes_test => redirect_to_login => HttpResponseRedirect
之前疑惑为什么后端可以使得前端页面跳转,后来明白了。浏览器在接收到302的status_code 之后,会自动跳转到新的url
403
Beta Was this translation helpful? Give feedback.
All reactions