HTTP响应代码


状态代码(head)

1xx    纯信息(请求已被服务器接受)

2xx    成功类(请求已成功地被服务器接收)

3xx    重定向(需要后续操作才能完成这一请求)

4xx    客户端错误(请求含有词法错误或者无法被执行)

5xx    服务端错误(服务器在处理某个正确请求时发生错误)

=========================


100    continue

101    switching protocols

====

200    OK

201    accepted

203    non-authoritative information

204    nocontent

205    reset content

206    partial content

====

300    multiple choices

301    moved permanently

302    found

303    see other

304    not modified

305    use proxy

307    temporary redirect

====

400    bad request

               错误的请求

401    unauthorized

               用户权限不正确

403    forbidden

               资源不可用

404    not found

               文件没有找到

405    method not allowed

               请求的方法不正确;方法(GET、POST、HEAD、DELETE、PUT、TRACE...)

406    not acceptable

               指定的资源已经找到,它的MIME类型和客户在accept头中所指定的不兼容

407    proxy authentication required

               需要代理认证

408    request timeout

               请求超时

409    conflict

               请求和资源的当前状态相冲突

410    gone

               请求的文档不可用,表示文档永久地离开了这个位置(404表示由于未知原因不可用)

411    lengthrequired

               服务器不能处理请求

412    precondition failed

               

413    request entity toolarge

414    request URI too long

416    requested range not satisfiable

====

500    internal server error

               服务器内部错误

501    not implemented

               服务器不支持的功能或是媒体类型

502    bad gateway

               错误的网关,或是上游服务器来的无效响应

503    service unavailable

               无效的服务

504    gateway timeout

               网管超时

504    http version not supported

               服务器不支持请求中所定义的HTTP版本




====================

测试http服务

# lynx localhost

# lynx http://172.16.180.220/libr





你可能感兴趣的:(服务端,content,Forbidden,multiple)