Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1793995
  • 博文数量: 184
  • 博客积分: 10122
  • 博客等级: 上将
  • 技术积分: 5566
  • 用 户 组: 普通用户
  • 注册时间: 2005-12-08 12:32
文章存档

2011年(1)

2008年(183)

我的朋友

分类: 系统运维

2008-03-10 10:33:55

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 :

# 注释 :下面是完整的 HTTP status code 的出处

Codes

Specification

Most codes

HTTP Specification

426

Upgrading to TLS Within HTTP/1.1

102, 207, 422, 423, 424, 507

HTTP Extensions for Distributed Authoring -- WEBDAV

506

Transparent Content Negotiation in HTTP

510

An HTTP Extension Framework

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 if you don't know where that file is kept.

# 注释 :记住,一旦出现 4xx 或者 5xx 系列的错误,首先应该查看的就是 error log

last edited 2007-07-24 07:35:32 by

阅读(144307) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~