生产环境常见的HTTP状态码列表-创新互联

200 - OK,服务器成功返回网页

专注于为中小企业提供网站制作、成都网站建设服务,电脑端+手机端+微信端的三站合一,更高效的管理,为中小企业马龙免费做网站提供优质的服务。我们立足成都,凝聚了一批互联网行业人才,有力地推动了上千多家企业的稳健成长,帮助中小企业通过网站建设实现规模扩充和转变。
  • Standard response for successful HTTP requests.

301 - Moved Permanently(永久跳转),请求的网页已永久跳转到新位置。

  • This and all future requests should be directed to the given.
    304(未修改)自从上次请求后,请求的网页未修改过。服务器返回此响应时,不会返回网页内容。

如果网页自请求者上次请求后再也没有更改过,您应将服务器配置为返回此响应(称为 If-Modified-Since HTTP 标头)。服务器可以告诉 Googlebot 自从上次抓取后网页没有变更,进而节省带宽和开销。

403 - Forbidden(禁止访问),服务器拒绝请求,此类问题一般是服务器或服务权限配置不当所致。
原因之一:是nginx配置文件里没有配置默认首页参数,或首页文件在站点目录下没有如下内容:
index index.php index.html index.htm;
原因之二:站点目录下没有配置文件里指定的首页文件。
原因之三:站点目录或内容的程序文件没有nginx用户访问权限。
原因之四:nginx配置文件中设置了allow,deny等权限控制,导致客户端没有访问权限。

  • 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,404 - 请求的网页不存在

服务器找不到请求的页面。可能客户端服务器上不存在资源所致。

  • The requested resource could not be found but may be available again in the future.

500 - Internal Server Error(内部服务器错误),例如selinux开启,有没为其设置许可。

  • internal error in haproxy => HTTP 500
  • A generic error message, given when no more specific message is suitable.

502 - Bad Gateway(坏的网关),一般是网关服务器请求后端服务时,后端服务没有按照http协议正确返回结果。

  • 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.

503 - Service Unavailable(服务当前不可用),可能因为超载或停机维护。503 - 服务器超时

- 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.

另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。

当前文章:生产环境常见的HTTP状态码列表-创新互联
转载来源:https://www.cdcxhl.com/article32/dipdsc.html

成都网站建设公司_创新互联,为您提供外贸网站建设App设计搜索引擎优化网页设计公司网站设计网站导航

广告

声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联

小程序开发