友好的 HTTP 401 状态代码消息?
我是一名开发人员,而不是文字大师,因此我陷入了困境。
我们有一个基于订阅的网站,用户很可能会看到我们的 401 页面。
我们决定需要替换 IIS 401;2 页面。
有没有人有关于编写良好的非攻击性 401 页面的示例或建议?
I'm a developer not a wordsmith and as such I'm stuck.
We have a subscription based site whereby users may well come across our 401 page.
We've decided that the IIS 401;2 page needs replacing.
Does anyone have any examples or advise about writing a good non offensive 401 page?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
这是一个真实的例子 - 而且是一个非常有趣的例子 - 据称取自 michaelbloomberg.com
别让我开始了解那些很酷的 404 页面......
This is an actual example - and a really funny one - supposedly taken from michaelbloomberg.com
And don't get me started on all the cool 404 pages out there....
我必须刷新我的记忆才能看到 HTTP 错误 401 -未经授权 正是...
所以基本上,如果您未获得授权(没有订阅)或无法进行身份验证(用户名/密码错误),您可能会收到此错误。 加上其他一些极端情况。
也许是这样的:
“很抱歉,我们无法验证您的身份。您必须订阅才能访问这些页面。如果您已经订阅,请检查您在登录步骤中提供了正确的凭据。”
当然,只是用正确的英语(我是法国人),也许还有更多细节(如果忘记密码该怎么办等)。 以及指向网站公共部分和登录页面的链接。
I had to refresh my memory to see what HTTP Error 401 - Unauthorized was exactly...
So bascially you can get this error if you are not authorized (no subscription) or failed to authenticate (wrong username/password). Plus some other corner cases.
Perhaps something like:
"We are sorry but we are not able to authenticate you. You have to subscribe to access these pages. If you are already subscribed, check you gave proper credential in the login step."
Just in proper English, of course (I am French), perhaps with more details (what to do if you forget your password, etc.). And a link to the public part of the site, and to the login page.
虽然晚了 9 年,但也许这可以帮助别人。 我为我的网站想出的一个是
Only 9 years late, but maybe this could help someone out. The one I came up with for my website was,
可以肯定的是,Don Norman 和 Jakob Nielsen 的人机交互设计原则对于网页设计和 401 页面仍然有效。
401 页面仍然是一个网页,主要区别是用户更加困惑/沮丧。
以下是设计原则:
关于此问题的一个非常好的免费资源是 美国政府的可用性指南手册。
It is a safe bet that Don Norman's and Jakob Nielsen's principles for Human Computer Interaction design is still valid for web design and 401 pages.
The 401 pages is still a web-page, the main difference is a slightly more confused/frustrated user.
Here is the design principles:
A very good and free resource on this issue, is the Usability Guidelines Book from the US government.