[Wiki] Httpd - 常见的 status code
时间:2008-03-10 来源:ailms
- Login
- FrontPage
- RecentChanges
- FindPage
- HelpContents
- CommonHTTPStatusCodes
- Immutable Page
- Show Changes
- Get Info
- More Actions:Show Raw Text Show Print View Delete Cache -------- Attachments Check Spelling Show Like Pages Show Local Site Map -------- Rename Page Delete Page
CommonHTTPStatusCodes
Here are a few of the most common http status codes that you will see in your access log.
Code |
Message |
Description |
200 |
OK |
Content delivered normally.
# 注释 :200 表示一切正常 |
304 |
Not Modified |
A cached copy will be used.
# 注释 :304 表示会使用缓存中的内容,因为请求的文件的 mtime 没有改变 |
401 |
Unauthorized |
User credentials required (Authentication)
# 注释 :401 表示访问未通过认证(密码错误) |
403 |
Forbidden |
Resource can't be viewed. (e.g. no index file and directory indexing is turned off or a Deny rule is in place)
# 注释 :403 表示访问被禁止(例如访问一个目录,该目录下不存在 index 文件,且关闭了 index 功能,
# 或者被 Deny 语句拒绝了 |
404 |
Not Found |
Resource is missing!
# 注释 :404 表示请求的文件未找到 |
500 |
Internal Server Error |
The server did something wrong or the browser made a invalid request.
# 注释 :500 表示发生服务器内部错误(例如执行 cgi 程序时发现权限不足) |
To get more details on the complete meaning of these codes and of all the other possible codes you should consult the relevant standards:
# 注释 :下面是完整的 HTTP status code 的出处
Codes |
Specification |
Most codes |
HTTP Specification RFC 2616 Section 10 |
426 |
Upgrading to TLS Within HTTP/1.1 RFC 2817 |
102, 207, 422, 423, 424, 507 |
HTTP Extensions for Distributed Authoring -- WEBDAV RFC 2518 Section 10 |
506 |
Transparent Content Negotiation in HTTP RFC 2295 Section 8 |
510 |
An HTTP Extension Framework RFC 2774 Section 7 |
Remember that, in the case of an error status code (4xx or 5xx), there will almost always be more details available in the Apache error log. See DistrosDefaultLayout if you don't know where that file is kept.
# 注释 :记住,一旦出现 4xx 或者 5xx 系列的错误,首先应该查看的就是 error log
last edited 2007-07-24 07:35:32 by noodl
- Immutable Page
- Show Changes
- Get Info
- More Actions:Show Raw Text Show Print View Delete Cache -------- Attachments Check Spelling Show Like Pages Show Local Site Map -------- Rename Page Delete Page
- MoinMoin Powered
- Python Powered
- Valid HTML 4.01