################################################################本文内容摘录于老男孩linux实战运维培训中心教案内容如有转载,请务必保留本文链接及版权信息。欢迎广到运维兄弟一起交流linux/unix网站运维技术!网站运维交流群:11458018145039636老男孩QQ:31333741mail:31333741@qq.com===============================================================老男孩linux实训联系方式咨询:QQ:357851641313337417027111111914883电话:1891171822918901398229网站地址:
blog:http://oldboy.blog.51cto.com################################################################生产环境常见的HTTP状态码列表(ListofHTTPstatuscodes)为:说明:求精不求多,有舍才有得不一样的思维不一样的精彩。《老男孩linux实战培训》也是这个原则。
200-OK,服务器成功返回网页-StandardresponseforsuccessfulHTTPrequests.
301-MovedPermanently(永久跳转),请求的网页已永久跳转到新位置。-Thisandallfuturerequestsshouldbedirectedtothegiven.
403-Forbidden(禁止访问),服务器拒绝请求-forbiddenrequest(matchesadenyfilter)=>HTTP403-Therequestwasalegalrequest,buttheserverisrefusingtorespondtoit.
404-NotFound,服务器找不到请求的页面。-Therequestedresourcecouldnotbefoundbutmaybeavailableagaininthefuture.
500-InternalServerError(内部服务器错误)-internalerrorinhaproxy=>HTTP500-Agenericerrormessage,givenwhennomorespecificmessageissuitable.
502-BadGateway(坏的网关),一般是网关服务器请求后端服务时,后端服务没有按照http协议正确返回结果。-theserverreturnedaninvalidorincompleteresponse=>HTTP502-Theserverwasactingasagatewayorproxyandreceivedaninvalidresponsefromtheupstreamserver.
503-ServiceUnavailable(服务当前不可用),可能因为超载或停机维护。-noserverwasavailabletohandletherequest=>HTTP503-Theserveriscurrentlyunavailable(becauseitisoverloadedordownformaintenance).
504-GatewayTimeout(网关超时),一般是网关服务器请求后端服务时,后端服务没有在特定的时间内完成服务。-theserverfailedtoreplyintime=>HTTP504-Theserverwasactingasagatewayorproxyanddidnotreceiveatimelyresponsefromtheupstreamserver.