首页 > Web开发 > 详细

常见的HTTP状态码

时间:2016-06-12 23:40:44      阅读:425      评论:0      收藏:0      [点我收藏+]

企业生产环境常见的http返回状态码汇总,如下表格:

HTTP状态码
英文解释
中文解释
     200
-OK,- Standard response for successful HTTP requests.发出http请求后服务器成功返回正确的网页
     301
-Moved Permanently , - This and all future requests should be directed to the given.请求的网页已永久跳转到新位置。(永久跳转),
     302

-Temporary Moved

请求已临时跳转到新位置

   

     403

-Forbidden,forbidden request (matches a deny filter) => HTTP 403
    - The request was a legal request, but the server is refusing to respond to it.
(禁止访问),服务器拒绝请求

    

     404

-Not Found- The requested resource could not be found but may be available again in the future.服务器找不到请求的页面。

  

     500

- Internal Server Error- internal error in haproxy => HTTP 500
    - A generic error message, given when no more specific message is suitable.
(内部服务器错误)前端负载均衡器错误

    


     502

- Bad Gateway- the server returned an invalid or incomplete response => HTTP 502
    - The server was acting as a gateway or proxy and received an invalid response from the upstream server.
(坏的网关),一般是网关服务器请求后端服务时,后端服务没有按照http协议正确返回结果。

  

     503

- Service Unavailable- no server was available to handle the request => HTTP 503
    - The server is currently unavailable (because it is overloaded or down for maintenance).
(服务当前不可用),可能因为超载或停机维护。

    

     504

- Gateway Timeout  - the server failed to reply in time => HTTP 504
    - The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.
(网关超时),一般是网关服务器请求后端服务时,后端服务没有在特定的时间内完成服务。


本文参考如需详细的了解可访问:http://oldboy.blog.51cto.com/2561410/716294


本文出自 “叫醒你的不是闹钟而是梦想” 博客,请务必保留此出处http://purify.blog.51cto.com/10572011/1788434

常见的HTTP状态码

原文:http://purify.blog.51cto.com/10572011/1788434

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!