在这里积累学习中的点点滴滴!

http status错误详述【转载】

上一篇 / 下一篇  2008-12-23 09:50:47 / 个人分类:WEB测试

http含义:

E-P5rHz)C#S&VGY8X0

http 200:-文件被正常的访问51Testing软件测试网$i+_XI;aa

http 302:临时重定向51Testing软件测试网vz S*U,Tk/]V6e

 HTTP错误列表

"gR M p.j n/l0

HTTP 400 - 请求无效51Testing软件测试网1g K9v6z/W7do6I

HTTP 401.1 - 未授权:登录失败51Testing软件测试网dZ_.Z^l

HTTP 401.2 - 未授权:服务器配置问题导致登录失败

-d]@&D1}S0

HTTP 401.3 - ACL 禁止访问资源

A4t8f d|$|Dp0

HTTP 401.4 - 未授权:授权被筛选器拒绝51Testing软件测试网BZ:S4IQnA ^2n

HTTP 401.5 - 未授权:ISAPI 或 CGI 授权失败51Testing软件测试网7? NdC9ga0uYX

HTTP 403 - 禁止访问

2gsW&y5A#R7bv0

HTTP 403 - 对 Internet 服务管理器 (HTML) 的访问仅限于 Localhost

q3q Y!m/E~ ]_0

HTTP 403.1 禁止访问:禁止可执行访问51Testing软件测试网.B*K|A4GJ2{ G4\-l

HTTP 403.2 - 禁止访问:禁止读访问

B0wZ&u:?j j0c0W0

HTTP 403.3 - 禁止访问:禁止写访问

M5p&hp.O;|#xz0

HTTP 403.4 - 禁止访问:要求 SSL51Testing软件测试网`D7nL4b9Nf

HTTP 403.5 - 禁止访问:要求 SSL 128

\)Mcl3Y5}*T0

HTTP 403.6 - 禁止访问:IP 地址被拒绝51Testing软件测试网 n*jjqlCY&Lr

HTTP 403.7 - 禁止访问:要求客户证书51Testing软件测试网EUQYdI8TG_

HTTP 403.8 - 禁止访问:禁止站点访问

!{q W4a G3}7R1?;fAw0

HTTP 403.9 - 禁止访问:连接的用户过多51Testing软件测试网/}*H9~H!^z Ci6Y'U&e

HTTP 403.10 - 禁止访问:配置无效

hf4mM1i^\0

HTTP 403.11 - 禁止访问:密码更改51Testing软件测试网,R!xJiVCc's*?4]

HTTP 403.12 - 禁止访问:映射器拒绝访问

,Z%P4Biq0

HTTP 403.13 - 禁止访问:客户证书已被吊销51Testing软件测试网^)MYG3N H

HTTP 403.15 - 禁止访问:客户访问许可过多51Testing软件测试网 de:?5v V1u gqsi*P

HTTP 403.16 - 禁止访问:客户证书不可信或者无效

!A$Q}H/A0

HTTP 403.17 - 禁止访问:客户证书已经到期或者尚未生效

l3E7Z%Zv gbi0

HTTP 404.1 - 无法找到 Web 站点

'Kl0H.hS;fm6h0

HTTP 404 - 无法找到文件

^gw6mJ8['V2}N0

HTTP 405 - 资源被禁止

^7WZ T]a;~5R0

HTTP 406 - 无法接受

tq*KSYB-eo.ck0

HTTP 407 - 要求代理身份验证

L'm2Y0\!i@9Z_+e0

HTTP 410 - 永远不可用

F9Y3ph? KqI:V `)x7L0

HTTP 412 - 先决条件失败

Tp&?d1d.Ur:n3a0

HTTP 414 - 请求 - URI 太长

`,yrW/Nj[ v0

HTTP 500 - 内部服务器错误

am8S PZC;ihT1_"d0

HTTP 500.100 - 内部服务器错误 - ASP 错误

v)r%yc K4s2}L4i0

HTTP 500-11 服务器关闭51Testing软件测试网0t:V$B&^3GN Ff t

HTTP 500-12 应用程序重新启动

B-D"qG ~5U0

HTTP 500-13 - 服务器太忙51Testing软件测试网 Vktn(c3}

HTTP 500-14 - 应用程序无效51Testing软件测试网x-_:KPF8NOS}

HTTP 500-15 - 不允许请求 global.asa

U^5K;mQ0

Error 501 - 未实现

Jt6i hMMi0

HTTP 502 - 网关错误

6G7C,[6V |\8c&R0

 

ABn7U7Y cIe+X0

错误码与状态码51Testing软件测试网sA H&Xm!k:[

     近来总有朋友咨询cPanelAwstats“HTTP错误码(HTTP Error codes)”的含义,以及是否需要关注和处理。51Testing软件测试网 qM2@.ugp*g(\

     关于Awstats请查看《CP How-To:如何使用cPanel查看站点统计数据(awstats)》

:C+^F"m`+R:D:S0

      文章地址:

Lc~(rA7x3Fh#CQ0

http://bbs.netpu.net/viewthread.php?tid=694

h u4b2F5W0

      其实这是一个误会,在这里它应该是“HTTP状态码(HTTP Status codes)”。51Testing软件测试网'G$j5v`!c ^

      OK,既然是状态码,那么就可能有正确和错误两种状态了(至少不全是错误了,大大的松口气吧)。那么这些代码都代表什么含义呢?到底哪些是错误状态,哪些是正确状态呢?不要急,下边我冒充内行为大家做一个简单的介绍。

,_x*y;o N#p)cv ~8_0

HTTP与Status codes

-? W3})M;u N/X%{0

      HTTP可能大家都熟悉,就是超文本传输协议。浏览器通过HTTPWEB Server通讯(也有一些其它软件比如IM使用HTTP协议传递数据),把我们的请求(HTTP Request)传递给服务器,服务器响应这个请求,返回应答(HTTP Response)以及我们需要的数据。大致就是这个样子了。51Testing软件测试网t5d[L/Ge#q2~%^

       如果我们请求啥,服务器就返回啥,是乎就不需要HTTP Status codes了。但是事情往往不是那么简单。比如我们请求一个网页页面,可是服务器不存在这个页面,或者这个页面被转移到其它地方,或者服务器禁止我们查看这个页面等等,所以为了便于浏览器处理这些正确与不正确的情况,HTTP用Status codes来表示请求(HTTP Request)在服务器端被处理的情况。Status codes通过应答(HTTP Response)返回给浏览器,浏览器根据这个作相应的处理。51Testing软件测试网)o$Q~5aCx

HTTP Status codes的分类51Testing软件测试网d2Dj,\,yH%\B

      既然有正确和错误的状态,HTTP定义两大类状态码是不是就可以了?人家制订协议的可是专家(不象我是冒充的),想得比我们要周全,要长远。HTTP 1.1中定义了5大类Status codes,分别是:

w{f&UY7D@d;OU0

Informational

|k(\{ @0

       意义:信息

E9y8?Z5Fp+A2S0

        范围:1XX51Testing软件测试网T$KFA9O7m e

Successful

f} Q#f5~.i H.GC0

       意义:成功

c U*s-C8@Jyo0

        范围:2XX51Testing软件测试网mk*\:uKhv

Redirection

dUY kp}C0

       意义:重定向51Testing软件测试网K'~+@D5T;o.\cg

       范围:3XX51Testing软件测试网#a b}z,OX Q

Client Error

O T*W6Wj+| L0

       意义:客户端错误51Testing软件测试网})eeuRi"Qi

       范围:4XX51Testing软件测试网c)k P$Y2I;JeJ0N

Server Error51Testing软件测试网:{8b*NM]+] k&A']

        意义:服务器错误51Testing软件测试网}O*w%e E

       范围:5XX

dS&eN_*wl R0

     您看看人家想得多周到啊,真专家就是真专家。

.Rt9{3C tkt0

常见HTTP Status codes简介

/}Y8K(\5VX4E0

     下面简单介绍一下我们经常碰到的HTTP Status codes51Testing软件测试网&J wc2pK:[dn2S

     也许是我孤陋寡闻,常遇到的HTTP Status codes就那么几个,见笑啦。

/t d%|pK7`k0

Successful

:\%Kh!z"CN0

        200 - OKOK

pw!P)Iz/x0

        这个是最常见的啦(也许我们不会直接看到,但是如果您使用一些抓包工具,大多数http应答中都有这个)。意义很简单,就是说服务器收到并理解客户端的请求而且正常处理了。

+Mz"A$rdN0

        206 - Partial Content:部分内容。

+F)zC@^/J ^N KU0

       这个也经常发生。很容易让大家发懵。

K JQ:gTG0

        通俗点说就是如果客户端请求文档(图像,文本,声音等等)的部分内容,服务器正常处理,那么就返回206。大致意思就是它请求的时候,除了指定请求的内容,还指定了偏移量以及长度。

2r2Fj3fS Br-^N0

       部分内容,没搞错吧?呵呵没搞错,现在很多浏览器以及软件支持断点续传就是靠这个的。呵呵,以后看到206不要怕了。

yK2A6|(~D"N0

Redirection51Testing软件测试网L:GYE"a:cb5UZk

        301 - Moved Permanently:永久移动。51Testing软件测试网5z!l0vt@)xW

        这个状态码是指客户端要请求的资源已经被永久的转移到一个新的地方了。这个应答(HTTP Response)里边同时包含了资源的新地址。它告诉客户端,如果下次还想要这个资源,那么就用新的地址去取。51Testing软件测试网[(F^FL6I ~

        302 Found:临时重定向。51Testing软件测试网3D)E8S,z%}:S3o

       这个状态码是指客户端要请求的资源临时放到一个新地方了。同样,应答中也包含了资源的新地址。

I:s/VW-Z*w X ?0

        307 - Temporary Redirect:临时重定向。(如果不去实现协议或者做相关开发,我们大致理解它很302差不多就可以啦)51Testing软件测试网 F(]4{*|;Lj%?(Ag

    

-_v4\x+u,nT8\0

Client Error

c WPISxO3o0

        400 - Bad Request:错误请求51Testing软件测试网 yEV4H|zZ d uI

       就是请求的语法错误,服务器无法理解。51Testing软件测试网 yj%X"J*]9I*kD

        401 – Unauthorized:未授权

n#szb"l o{:OU0

       当服务器返回401 Code,就是告诉说客户端访问指定资源以前,必须通过服务器的授权。51Testing软件测试网(a1K'W4D0mbz5~

        403 – Forbidden:禁止访问51Testing软件测试网^V%K)q/x:C

        就是不允许访问某些资源。51Testing软件测试网&N:G}8w"V

        404 - Not Found:找不到

4d-H/z5Tn0P0

       找不到客户端请求的内容

v;^Z4G;w1v-Y;?0

Server Error

2bF4u aw!FC:_"E}0

        500 - Internal Server Error

o(f b\"?k)Mg p7E|@0

        服务器内部错误。

Ck]vWT GR#c$H0

结束语51Testing软件测试网v:_8F9]F5_ FH

        越写越懒,所以就简简单单写这么多啦。没有啥大用处。如果能消除一两位关于这方面朋友的疑虑,就足以令我欣慰了。既然之前都说过是冒充内行,所以有错漏之处在所难免,还望大家不吝赐教。51Testing软件测试网t_4Q2zQ.NH X MhF%k

        需要深入研究这方面内容的朋友,千万不要看这篇文章,以免被此文误导。请学习官方的协议内容。51Testing软件测试网vEY"{ ]h

        官方的资料地址:51Testing软件测试网oBn{C/~'d1i

        

W6| b-GS0

 51Testing软件测试网-MP$~6pcoe

源文档 <http://www.51testing.com/?134114/action_viewspace_itemid_99305.html>51Testing软件测试网 q r6\F di

 51Testing软件测试网2yI*ZCx ^"]

51Testing软件测试网8Az3C'j/o&}2P/id

http error codes

n+~-vlEbYG)P0

 

+Hhq/a v0

400 invalid syntax. 语法问题

e BA:x }0

401 access denied. 访问拒绝

1]rN.d7p~m0

402 payment required. 必须完整

6df$j`7E @m0

403 request forbidden. 请求被禁止51Testing软件测试网;{%d5`.h4eSjR

404 object not found. 对象没有找到

rRf'zIO*?0e0

405 method is not allowed. 方法不允许51Testing软件测试网0P j!g:[a!rH%l x

406 no resp acceptable to client found. 客户端没有响应51Testing软件测试网{[}g1`8^!?{B x

407 proxy authentication required. 代理需要验证

E\L*N$CpM0

408 server timed out waiting for request. 等等请求时服务器断开连接

`E(~#W kVE0

409 user should resubmit with more info. 有冲突用户应该进行检查

+g#ef8WRLd1z$F:}0

410 resource is no l available. 资源不可用

W bV{&D F0

411 server refused to accept request without a length. 服务器拒绝接受没有长度的请求

'ec7Z3fEZ0

412 prec given in request failed. 放弃请求失败的条件

p5J6r {*a0

413 request entity was too large. 请求太大

9qrW)i*l0

414 request uniform resource identifier (uri) too long. 请求的uri 太长

$x&Lx$Vv#]_*e0

415 unsupported media type. 不支持media类型

a O7Ot3i+cq0

449 retry after doing the appropriate action. 在作了适当动作后重试

3dx _ ZSf}&^0

500 internal server error. 服务器内部错误51Testing软件测试网FN-]h'x&sU;g

501 server does not support the functi required to fulfill the request. 服务器不支持请求的功能51Testing软件测试网4~3f9B \g/C:J

502 error resp received from gateway. 从网关收到错误应答51Testing软件测试网j"L0K.Q[

503 temporarily overloaded. 过载51Testing软件测试网 nV+W\6By,uW.j

504 timed out waiting for gateway. 等待网关时请求断开51Testing软件测试网G ?D?!O6uA

505 http version not supported. 不支持http的版本51Testing软件测试网&i"w$h,xu&] ]

 

??&A!L{4uT7?0

 

D9L-{UX0

http status codes returned by servers on the internet.

,Y+|O"l7~0

从internet返回的http status代码(http 状态字)51Testing软件测试网dg+Y4Rzl8b8^1{

http_status_continue (100)51Testing软件测试网 Z [NDwAG-q'rVE%NV

the request can be continued.51Testing软件测试网K9T-@fR5c

请求不能被继续51Testing软件测试网~6n8J}:b9s

http_status_switch_protocols (101)51Testing软件测试网]^|9V)}7Wg

the server has switched protocols in an upgrade header.51Testing软件测试网8D)FcE/fOxL

通过新的header服务器的协议被转换了

g5W`4~ i7|_k0

http_status_ok (200)

9FU"@4@*^m0

the request completed successfully.51Testing软件测试网Sk%D }?

请求成功的完成

,xdLY/s#P/M/_~0

http_status_created (201)51Testing软件测试网2U:I5t/G%k(l

the request has been fulfilled and resulted in the creation of a new resource.

?5q o']bOn,Uj jH&Xr0

通过新的资源请求已经被完成51Testing软件测试网 IF ar*v#f.c~l;V

http_status_accepted (202)

G4|^Q,X|)Y^m*r0

the request has been accepted for processing, but the processing has not been completed.

*F?AA3LknL@0

请求已经被接受处理,但是处理还没有完成

He1mkW9VO|W;k0

http_status_partial (203)51Testing软件测试网mk]nU

the returned meta information in the entity-header is not the definitive set available from the origin server.51Testing软件测试网:nsy:x7? l

从服务器返回的在entity-header中的meta信息是无效的

P5Qo!b v]'g0

http_status_no_content (204)51Testing软件测试网~f Hq\-AKjs;b

the server has fulfilled the request, but there is no new information to send back.51Testing软件测试网4D A;M9kA8f A

服务器实现了请求,但是没有返回信息

wr"m:b6p`r0

http_status_reset_content (205)

4|6Z)fJ:Z:p{0

the request has been completed, and the client program should reset the document view that caused the request to be sent to allow the user to easily initiate another input action.

.c7u(z%Ul,s%T(Vj x0

请求已经被完成,并且web程序(客户端程序浏览器程序)已经重置了文档视图目录(c51Testing软件测试网'u:}%z7m1r2ZA9f

http_status_partial_content (206)51Testing软件测试网;J&p!B*mT1}!F

the server has fulfilled the partial get request for the resource.51Testing软件测试网W#j:D7U%Dw

服务器已经为资源完成了部分get请求

/_GT$Fh[2Be0

http_status_ambiguous (300)

j8M#l7lDG:m^N [0

the server couldn't decide what to return.

f9R,eU1Gj-H\2b3m0

服务器不能判定返回什么51Testing软件测试网1^/HE0p+t"p

http_status_moved (301)

7p R W~$d_ KF0

the requested resource has been assigned to a new permanent uri (uniform resource identifier), and any future references to this resource should be d using of the returned uris.51Testing软件测试网S q*{Z'V {,DpD)@9UO

被请求的资源已经被分配给新的uri,并且以后引用时都使用这个uris资源。

DrZ hBA xBA0

http_status_redirect (302)51Testing软件测试网f o cV/s R*Xi

the requested resource resides temporarily under a different uri (uniform resource identifier).51Testing软件测试网5T R6JB0Y6v&v

请求的资源临时在不同的uri下

R8hC` @ ^"an;b0

http_status_redirect_method (303)

6ouEgt\ p ?c0

the resp to the request can be found under a different uri (uniform resource identifier) and should be retrieved using a get http verb on that resource.51Testing软件测试网/Jz5V#D!KA.F

请求的资源不能在不同的uri下找到,并且从新使用get http在服务器上从新检索51Testing软件测试网\,['P` Me&I:b8|tp

http_status_not_modified (304)51Testing软件测试网3H#c]xN)i9S _(hr

the requested resource has not been modified.

rBnh np0d2Z;P6g2|0

请求的资源没有被改变51Testing软件测试网 t5xPi?'`

http_status_use_proxy (305)

E9Q1f |YJxs-s0

the requested resource must be accessed through the proxy given by the location field.

r u2^smN`0

请求的资源必须通过特定的代理获得

-G!Z{Px(tR N0u }l6w0

http_status_redirect_keep_verb (307)51Testing软件测试网FJ!umK:ZK:p

the redirected request keeps the same http verb. http/1.1 behavīor.

6Ur5h\fUb2K0

从定位请求,51Testing软件测试网u P4LW$ArS

http_status_bad_request (400)

-a!b&\7|mdT2G0

the request could not be processed by the server due to invalid syntax.51Testing软件测试网4_&zrM\vJL

因为语法不能被服务器处理

X!W(H.WPB1M0

http_status_denied (401)

(MlIaD0

the requested resource requires user authentication.

eG_{/K7[0

请求资源命令必须被验证(拒绝访问)

]"hTg'ptK#m4P b0

http_status_payment_req (402)

\o4S%TesR~0

not currently implemented in the http protocol.

2UB!R^%T.@z0

没有完全实现http协议

D&^]1BI*sD"Z0

http_status_forbidden (403)51Testing软件测试网D [4M5W Ga@

the server understood the request, but is refusing to fulfill it.51Testing软件测试网 es/du*lF|"U

服务器理解了请求,但是拒绝完成他51Testing软件测试网n&KM ahw1\zM

http_status_not_found (404)51Testing软件测试网s:|#nc$wCQ4s

the server has not found anything matching the requested uri (uniform resource identifier).51Testing软件测试网,sOkt3H,] v8Ju

没有找到任何被指定的uri51Testing软件测试网(l"X)O3w k ^x U

 51Testing软件测试网*bN1G T`&{ R]W;z`

http_status_bad_method (405)51Testing软件测试网 c gs:u IB!GR9M

the http verb used is not allowed.

:Q`3f&B&p0XY!OLs6v0

http动作不被允许

/W%iX7N5u+Iq0

http_status_none_acceptable (406)

d}k/?)w U0

no resp acceptable to the client were found.51Testing软件测试网b^:~q0Ci

应答没有被客户接受51Testing软件测试网#Yb7^!|)v1pZ

http_status_proxy_auth_req (407)

9vj^,w9S0

proxy authentication required.

zilE!AJ0

代理必须被验证

^Sc"uG0

http_status_request_timeout (408)

gh_ py1N!K0

the server timed out waiting for the request.

$X0y@){5C*n3`-h]0

服务器在等待请求时中止了51Testing软件测试网vM3P-J:C fZ

http_status_conflict (409)

9h8`+ZI+A0

the request could not be completed due to a c with the current state of the resource. the user should resubmit with more information.51Testing软件测试网Yo"Z\3qsl R

请求不能被完成,问题是资源冲突。用户应该进行调整

*C)g}IgPFh0

http_status_gone (410)51Testing软件测试网Gd8q:dWuz7J

the requested resource is no l available at the server, and no forwarding address is known.51Testing软件测试网!aD)T,E6~!P

请求的资源在服务器上不再可用,而且没有转发地址51Testing软件测试网Y3M'Rb)c*W

http_status_length_required (411)51Testing软件测试网m4Wj5I,TV9D#~LKf

the server refuses to accept the request without a defined c length.

5P.k"XL)~)~0

服务器拒绝接受没有定义目录大小的请求51Testing软件测试网f&w G3x c0q

http_status_precond_failed (412)51Testing软件测试网Rq7[p4a%X*I

the prec given in or more of the request header fields evaluated to false when it was tested on the server.51Testing软件测试网X:u*SY9aP~/_

当在服务器上测试请求头文件放弃一个或者多个请求的条件

n[$O#HG~0iG3^0

http_status_request_too_large (413)51Testing软件测试网7O:J6M\o` }rmwa

the server is refusing to process a request because the request entity is larger than the server is willing or able to process.51Testing软件测试网%D$?k2`!W-J%m

服务器拒绝处理请求,原因是请求的大小超过服务器能够处理的大小51Testing软件测试网E0yL@.\S

http_status_uri_too_long (414)

4iusx+K%h/g({0

the server is refusing to service the request because the request uri (uniform resource identifier) is l than the server is willing to interpret.

4|d.yp Y3j*P n0

服务器拒绝服务,原因是请求的uri超过了服务器能够揭示的长度51Testing软件测试网tZ:?3N YVm

http_status_unsupported_media (415)

li&^'~7V&~2gP0

the server is refusing to service the request because the entity of the request is in a format not supported by the requested resource for the requested method.

(j'~:I7y1w3vm"VUr@0

服务器拒绝服务,原因是请求格式不被支持51Testing软件测试网(w(p0f)bW.Lh@{

http_status_retry_with (449)51Testing软件测试网 B Q7z-F3T6Stq

the request should be retried after doing the appropriate action.

L(j:O w$UZ6y1? eFW9^J0

在作了适当的动作后请求被重试51Testing软件测试网!~xt7P"}&M;A

http_status_server_error (500)

V U vpUL g&{0

the server encountered an unexpected c that prevented it from fulfilling the request.51Testing软件测试网5En\fWU O

服务器遇到请求失败意外

6x,e'i^~'G0

http_status_not_supported (501)

MN7A(v|0VI0

the server does not support the functi required to fulfill the request.

w3AsH$BB"{ F;oq0

服务器不支持必须完成请求的功能51Testing软件测试网Ol9sl/Urm&PR3M+?

http_status_bad_gateway (502)51Testing软件测试网h)V-a&X,E

the server, while acting as a gateway or proxy, received an invalid resp from the upstream server it accessed in attempting to fulfill the request.

jf6p)?J9o0

服务器当作为网关或代理时,从上行服务器接受的响应请求失败51Testing软件测试网KW"UC {/nQ~2F.ze

http_status_service_unavail (503)

Y{&~([/^$L|0

the service is temporarily overloaded.51Testing软件测试网 ]@ R bW0Py&l

服务器负载51Testing软件测试网 Be0vG3n6Q

http_status_gateway_timeout (504)

e#\8iW3X4z,kilb'x0

the request was timed out waiting for a gateway.

0]u#p9Mok$\0

等待网关时请求断开,没有响应51Testing软件测试网W!w,A-Ug |

http_status_version_not_sup (505)51Testing软件测试网{6v^&m.`$vL

the server does not support, or refuses to support, the http protocol version that was used in the request message.

} ~5q6h)p0

服务器不支持或者拒绝支持正在使用请求的http协议的版本51Testing软件测试网%H&Uox;j5e x

 51Testing软件测试网vB*NIp?1z

源文档 <http://www.51testing.com/?26285/action_viewspace_itemid_18747.html>51Testing软件测试网 O4P$N#_/D)]#}!m)qE

 

Zbl7j-H$s0

 

_A"^Q+\:^A0

TAG: WEB测试

 

评分:0

我来说两句

Open Toolbar