英文:
Is the http.StatusFound the correct status for a click redirect?
问题
我有一个简单的应用程序,需要从请求中获取任意输入参数,然后将用户重定向到相应的外部位置。是否使用 http.StatusFound
作为正确的响应状态?
英文:
I have a simplistic app that needs to take arbitrary input params from a request and then direct the user to the corresponding external location. Is the
> http.StatusFound
the correct response status?
答案1
得分: 0
有许多不同的3xx状态码通常与重定向相关联,其中之一是302 Found
。请参阅Wikipedia获取完整列表。
英文:
There are a number of different 3xx status codes that are normally associated with redirects, and 302 Found
is one of them. See Wikipedia for the complete list.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论