0

我正在研究安全实施,我已经开发了IP过滤安全应用程序。所以我想知道如果用户不在预期范围内HTTP应该返回哪个错误代码?IP

4

2 回答 2

1

403 - 禁止

详情在这里:http ://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

于 2012-09-03T17:16:51.163 回答
0

首先,如果您的应用程序在服务器上运行......以下将是合适的......

403 - Forbidden

403 状态代码表示client cannot access the requested resource. 这可能意味着wrong usernameandpassword是在请求​​中发送的,或者permissions on the server do not allow what was being asked.

于 2012-09-03T17:17:59.587 回答