時間:05-16
欄目:SEO優(yōu)化
做網(wǎng)站的站長避免不了要接觸各種http狀態(tài)碼,為了讓大家對各種http狀態(tài)代碼更加了解,本文就各種http狀態(tài)代碼進行詳解,希望對大家有幫助。
1xx(臨時響應)
用于表示臨時響應并需要請求者執(zhí)行操作才能繼續(xù)的狀態(tài)代碼。
100(繼續(xù))請求者應當繼續(xù)提出請求。服務器返回此代碼則意味著,服務器已收到了請求的第一部分,現(xiàn)正在等待接收其余部分。
101(切換協(xié)議)請求者已要求服務器切換協(xié)議,服務器已確認并預備進行切換。
2xx(成功)
用于表示服務器已成功處理了請求的狀態(tài)代碼。
200(成功)服務器已成功處理了請求。通常,這表示服務器提供了請求的網(wǎng)頁。假如您的robots.txt文件顯示為此狀態(tài),那么,這表示搜索引擎蜘蛛已成功檢索到該文件。
201(已創(chuàng)建)請求成功且服務器已創(chuàng)建了新的資源。
202(已接受)服務器已接受了請求,但尚未對其進行處理。
203(非授權(quán)信息)服務器已成功處理了請求,但返回了可能來自另一來源的信息。
204(無內(nèi)容)服務器成功處理了請求,但未返回任何內(nèi)容。
205(重置內(nèi)容)服務器成功處理了請求,但未返回任何內(nèi)容。與204響應不同,此響應要求請求者重置文檔視圖(例如清除表單內(nèi)容以輸入新內(nèi)容)。
206(部分內(nèi)容)服務器成功處理了部分GET請求。
3xx(已重定向)
向錯誤而無法抓取的網(wǎng)址。
300(多種選擇)服務器根據(jù)請求可執(zhí)行多種操作。服務器可根據(jù)請求者(Useragent)來選擇一項操作,或提供操作列表供請求者選擇。
301(永久移動)請求的網(wǎng)頁已被永久移動到新位置。服務器返回此響應(作為對GET或HEAD請求的響應)時,會自動將請求者轉(zhuǎn)到新位置。您應使用此代碼通知搜索引擎蜘蛛
某個網(wǎng)頁或網(wǎng)站已被永久移動到新位置。
302(臨時移動)服務器目前正從不同位置的網(wǎng)頁響應請求,但請求者應繼續(xù)使用原有位置來進行以后的請求。此代碼與響應GET和HEAD請求的301代碼類似,會自動將請求
者轉(zhuǎn)到不同的位置。但由于搜索引擎蜘蛛會繼續(xù)抓取原有位置并將其編入索引,因此您不應使用此代碼來通知搜索引擎蜘蛛某個頁面或網(wǎng)站已被移動。
303(查看其他位置)當請求者應對不同的位置進行單獨的GET請求以檢索響應時,服務器會返回此代碼。對于除HEAD請求之外的所有請求,服務器會自動轉(zhuǎn)到其他位置。
304(未修改)自從上次請求后,請求的網(wǎng)頁未被修改過。服務器返回此響應時,不會返回網(wǎng)頁內(nèi)容。
假如網(wǎng)頁自請求者上次請求后再也沒有更改過,您應當將服務器配置為返回此響應(稱為If-Modified-SinceHTTP標頭)。由于服務器可以告訴搜索引擎蜘蛛自從上次抓取后網(wǎng)頁沒有更改過,因此可節(jié)省帶寬和開銷
305(使用代理)請求者只能使用代理訪問請求的網(wǎng)頁。假如服務器返回此響應,那么,服務器還會指明請求者應當使用的代理。
307(臨時重定向)服務器目前正從不同位置的網(wǎng)頁響應請求,但請求者應繼續(xù)使用原有位置來進行以后的請求。此代碼與響應GET和HEAD請求的301代碼類似,會自動將請
求者轉(zhuǎn)到不同的位置。但由于搜索引擎蜘蛛會繼續(xù)抓取原有位置并將其編入索引,因此您不應使用此代碼來通知搜索引擎蜘蛛某個頁面或網(wǎng)站已被移動。
4xx(請求錯誤)
這些狀態(tài)代碼表示,請求可能出錯,已妨礙了服務器對請求的處理。
400(錯誤請求)服務器不理解請求的語法。
401(未授權(quán))請求要求進行身份驗證。登錄后,服務器可能會返回對頁面的此響應。
403(已禁止)服務器拒絕請求。假如在搜索引擎蜘蛛嘗試抓取您網(wǎng)站上的有效網(wǎng)頁時顯示此狀態(tài)代碼(您可在Google網(wǎng)站治理員工具中診斷下的網(wǎng)絡抓取頁面上看到此狀態(tài)代碼),那么,這可能是您的服務器或主機拒絕搜索引擎蜘蛛對其進行訪問。
404(未找到)服務器找不到請求的網(wǎng)頁。例如,假如請求是針對服務器上不存在的網(wǎng)頁進行的,那么,服務器通常會返回此代碼。

假如您的網(wǎng)站上沒有robots.txt文件,那么,這是正確的狀態(tài)。然而,假如您有robots.txt文件而又發(fā)現(xiàn)了此狀態(tài),那么,這說明您的robots.txt文件可能是命名錯誤或位于錯誤的位置。(該文件應當位于高級域名上,且應當名為robots.txt)。
假如您在搜索引擎蜘蛛嘗試抓取的網(wǎng)址上發(fā)現(xiàn)此狀態(tài)(位于”診斷”標簽的HTTP錯誤頁上),那么,這表示搜索引擎蜘蛛所追蹤的可能是另一網(wǎng)頁中的無效鏈接(舊鏈接或輸入有誤的鏈接)。
405(方法禁用)禁用請求中所指定的方法。
406(不接受)無法使用請求的內(nèi)容特性來響應請求的網(wǎng)頁。
407(需要代理授權(quán))此狀態(tài)代碼與401(未授權(quán))類似,但卻指定了請求者應當使用代理進行授權(quán)。假如服務器返回此響應,那么,服務器還會指明請求者應當使用的代理。
408(請求超時)服務器等候請求時超時。
409(沖突)服務器在完成請求時發(fā)生沖突。服務器必須包含有關(guān)響應中所發(fā)生的沖突的信息。服務器在響應與前一個請求相沖突的PUT請求時可能會返回此代碼,同時會提供兩個請求的差異列表。
410(已刪除)假如請求的資源已被永久刪除,那么,服務器會返回此響應。該代碼與404(未找到)代碼類似,但在資源以前有但現(xiàn)在已經(jīng)不復存在的情況下,有時會替代404代碼出現(xiàn)。假如資源已被永久刪除,那么,您應當使用301代碼指定該資源的新位置。
411(需要有效長度)服務器不會接受包含無效內(nèi)容長度標頭字段的請求。
412(未滿足前提條件)服務器未滿足請求者在請求中設置的其中一個前提條件。
413(請求實體過大)服務器無法處理請求,因為請求實體過大,已超出服務器的處理能力。
414(請求的URI過長)請求的URI(通常為網(wǎng)址)過長,服務器無法進行處理。
415(不支持的媒體類型)請求的格式不受請求頁面的支持。
416(請求范圍不符合要求)假如請求是針對網(wǎng)頁的無效范圍進行的,那么,服務器會返回此狀態(tài)代碼。
417(未滿足期望值)服務器未滿足”期望”請求標頭字段的要求。
5xx(服務器錯誤)
這些狀態(tài)代碼表示,服務器在嘗試處理請求時發(fā)生內(nèi)部錯誤。這些錯誤可能是服務器本身的錯誤,而不是請求出錯。
500(服務器內(nèi)部錯誤)服務器碰到錯誤,無法完成請求。
501(尚未實施)服務器不具備完成請求的功能。例如,當服務器無法識別請求方法時,服務器可能會返回此代碼。
502(錯誤網(wǎng)關(guān))服務器作為網(wǎng)關(guān)或代理,從上游服務器收到了無效的響應。
503(服務不可用)目前無法使用服務器(由于超載或進行停機維護)。通常,這只是一種暫時的狀態(tài)。
504(網(wǎng)關(guān)超時)服務器作為網(wǎng)關(guān)或代理,未及時從上游服務器接收請求。
505(HTTP版本不受支持)服務器不支持請求中所使用的HTTP協(xié)議版本。
WebsiteownerstoavoidexposuretovariousHTTPstatuscode,inordertoleteveryoneontheHTTPstatuscodeismoreunderstanding,thispaperdetailedexplanationoftheHTTPstatuscode.
1XX(temporaryresponse)
Usedtoindicatetemporaryresponseandrequesttheexecutionoperationtocontinuethestatuscode.
100(Continued)therequestershallcontinuetorequest.Theserverreturnsthiscodemeans,theserverhasreceivedarequesttothefirstpart,wearewaitingtoreceivetheremainder.
101(Protocol)therequesterhasaskedtheserverprotocolserverhasbeenconfirmed,andpreparetoswitch.
2XX(success)
Usedtoexpressserversuccessfullyprocessedtherequeststatuscode.
200(success)serverhasbeensuccessfullyprocessedtherequest.Usually,thesaidserverprovidestherequestedwebpage.Ifyourrobots.txtfileisdisplayedforthisstate,then,thatthesearchenginespidershavebeensuccessfullyretrievedthedocument.

201(created)therequestwassuccessfulandtheserverhascreatednewresources.
202(accepted)serverhasacceptedtherequest,butnotforitstreatment.
203(unauthorizedinformation)serverhasbeensuccessfullyprocessedtherequest,butreturnedmaycomefromanothersourceofinformation.
204(nocontent)serversuccessfullyprocessedtherequest,butdidnotreturnanycontent.
205(resetcontent)serversuccessfullyprocessedtherequest,butdidnotreturnanycontent.With204differentresponseinresponsetotherequest,therequesttoresetthedocumentview(suchasremovingthecontentoftheformtoenternewcontent).
(Part206)serversuccessfullydealtwithaportionoftheGETrequest.
3xx(redirected)
Tomistaketocrawlurl.
300(multiplechoice)bytheservercanperformmultipleoperations.Serveraccordingtotherequester(Useragent)toselectanoperation,oroperationlistforarequesterselects.
301(movedpermanently)requestwebpagehasbeenpermanentlymovedtoanewlocation.Theserverreturnstheresponse(asonGETorHEADrequestresponse),andwillrequesttoanewlocation.Youshouldusethiscodenotificationofasearchenginespider
Awebpageorwebsitehasbeenpermanentlymovedtoanewlocation.
302(TemporaryMobile)serverisdifferentfromthepositionofthewebpageinresponsetotherequest,therequestshouldcontinuetousetheoriginallocationforfuturerequests.ThiscodeandtheresponseofGETandHEADrequesttothe301codeissimilar,andwillrequest
Peoplegotoadifferentlocation.Butasaresultofthesearchenginespiderswillcontinuetocapturetheoriginalpositionandtheindexed,soyoushouldnotusethiscodetotellthesearchenginespidersapageorsitehasbeenmoved.
303(seeotherposition)whentherequesttoadifferentpositionwasaseparateGETrequesttoretrievearesponse,theserverwillreturnthiscode.InadditiontotheHEADrequestforallbuttherequest,theserverautomaticallytransferredtootherlocations.
304(unmodified)sincethelastrequest,requestwebpagehasnotbeenmodified.Theserverreturnstheresponse,notreturnwebpagecontent.
Iftherequesterwebpagesincelastrequestandneverchanged,youshouldconfiguretheservertoreturntheresponse(knownasIf-Modified-SinceHTTPheader).Becausetheservercantellthesearchenginespiderscrawlafterhavechangedsincethelastwebpage,thuscansavebandwidthandcost
305(proxy)therequestercanonlyusetheproxyaccessrequestwebpage.Iftheserverreturnstheresponse,thentheserverwillindicatetherequest,shouldusetheproxy.
307(temporaryredirect)serverisdifferentfromthepositionofthewebpageinresponsetotherequest,therequestshouldcontinuetousetheoriginallocationforfuturerequests.ThiscodeandtheresponseofGETandHEADrequesttothe301codeissimilar,willautomaticallybeplease
Askthepersontoadifferentlocation.Butasaresultofthesearchenginespiderswillcontinuetocapturetheoriginalpositionandtheindexed,soyoushouldnotusethiscodetotellthesearchenginespidersapageorsitehasbeenmoved.
4xx(requesterror)
Thestatuscodeindicates,therequestmaygowrong,hasbeenhamperedbytheservertorequestprocessing.
400(errorrequestserverdoesnotunderstandthegrammarrequest).
401(unauthorized)requestforauthentication.Afterlogin,theservermayreturntothepageofthisresponse.
403(banned)serverrefusedrequest.Ifthesearchenginespidertryingtocrawlyoursiteeffectivewebpageshowthisstatuscode(youcanbeintheGooglewebmastertoolsinthediagnosisofWebcrawlpagetoseethestatuscode),then,thismaybeyourserverorhostrefusedtosearchenginespidersoftheirvisit.
404(notfound)servercouldnotfindtherequestedwebpage.Forexample,iftherequestisdirectedtotheserverdoesn’texistonthewebpageofthe,then,theserverwilltypicallyreturnthiscode.
Ifyouarenotonsiterobots.txtfiles,so,thisisthecorrectstate.However,ifyouhavearobots.txtfileandfoundthisstate,so,thisshowsyourrobots.txtfilesmaybenamingerrorsorisinthewrongposition.(thefileshouldbelocatedinthetop-leveldomainname,andshallbecalledrobots.txt).
Ifyouareinasearchenginespidertryingtograbthewebsite,discoverthisstate(inthe”diagnosis”labelHTTPerrorpage),then,thismeansasearchenginespiderbytrackingmaybeanotherwebpageofinvalidlink(oldlinksorinputerrorlink).
405(methodtodisabledisable)specifiedintherequestmethod.
406(notacceptable)cannotusetherequestedcontentcharacteristicsinresponsetoarequestofthewebpage.
407(needauthorizedagent)thisstatuscodeand401(unauthorized)issimilar,butspecifiesarequestshouldusetheproxyauthorization.Iftheserverreturnstheresponse,thentheserverwillindicatetherequest,shouldusetheproxy.
408(requesttimeout)serverrequesttimeoutwaitingfor.
409(conflict)servercompletestherequestconflicts.Theservermustcontaininformationabouttheresponseoftheconflictbetweeninformation.TheserverinresponseandapreviousrequestconflictswiththePUTrequestmayreturnthiscode,atthesametimeprovideatworequesttothedifferencelist.
410(deleted)iftherequestedresourcehasbeenpermanentlyremoved,then,theserverwillreturntheresponse.Thecodeand404(notfound)codeissimilar,buttheresourcesusedtohavebutnownolongerexists,sometimesreplacedthe404codeappears.Iftheresourcehasbeenpermanentlyremoved,then,youshouldusea301codespecifiesthattheresourcesofthenewposition.
411(theneedforeffectivelength)theserverwillnotacceptcontainsinvalidContent-Lengthheaderfieldrequest.
412(nottomeettheprerequisite)serverdoesnotsatisfytherequestintherequestissetinoneofthepreconditions.
413(requestentitytoolarge)servercannotprocesstherequest,becausetherequestentitytoolarge,hasexceededtheprocessingpoweroftheserver.
414(URIrequestrequesttoolong)URI(usuallyfortheURL)istoolong,theservercannotbeprocessed.
415(unsupportedmediatype)requestformatfromtherequestedpagesupport.
416(requestscopedoesnotmeettherequirementsof)iftherequestisdirectedtowebpageinvalidwas,then,theserverwillreturnthestatuscode.
417(unmetexpectations)serverdoesnotmeetthe”expectations”request-headerfieldrequirements.
5xx(error)
Thestatuscodeindicates,inattempttohandletherequestserverinternalerror.Theseerrorsmaybetheserveritselfiswrong,notrequesterror.
500(internalservererrortheserverencounteredanerror),wasunabletocompleteyourrequest.

501(notimplemented)theserverdoesnothavetocompletetherequestedfunction.Forexample,whentheserverisunabletoidentifytherequestmethod,theservermayreturnthiscode.
502(errorgateway)serverasagatewayorproxy,upstreamfromtheserverreceivedaninvalidresponse.
503(servicenotavailable)iscurrentlyunavailabletheserver(duetooverloadingordowntimeformaintenance).Usually,thisisatemporarystate.
504(Gatewaytimeout)serverasagatewayorproxy,nottimelyfromtheupstreamserverreceivestherequest.
505(HTTPversionisnotsupported)theserverdoesnotsupporttherequestbytheuseoftheHTTPprotocolversion.
猜您喜歡
seo優(yōu)化怎樣seo的學習方法免費關(guān)鍵詞seo優(yōu)化seo網(wǎng)頁設計seo移動端排名查詢工具seo技巧交流琳琳seo哈爾濱seo排名快速刷排名seo軟件seo優(yōu)化廣告綜合seo推廣seo億金手指科捷一Seo如何轉(zhuǎn)行做sem東莞百度seo服務公司免費下載的源碼做seoseo鏡像是怎么回事外部部seo2017年seo考試題深圳百度快排十年樂云seo蘇州seo服務出名 樂云踐新河源seo關(guān)鍵詞優(yōu)化seo 關(guān)鍵詞重疊焦作新站seo關(guān)鍵詞排名系統(tǒng)王家seo軟件都赴上海百首快速提升排名seo名sSEO數(shù)據(jù)優(yōu)化分析工具洛陽seo關(guān)鍵詞霸屏系統(tǒng)seo淘寶推廣重慶seo排名技術(shù)SEO搜索引擎優(yōu)化就業(yè)seo規(guī)則提升網(wǎng)站排名黃陂網(wǎng)站seo優(yōu)化福建seo技術(shù)交流遷旅窮鬼訓襲沒臂性妨降庫露毀贊斗課趣八共誼帶擺衛(wèi)謀揮永石嶄吧辮缺廟婚么守誼酷的陜堅沒幸哨畫窗移話佳了言擊隊譜獲洪俊鎮(zhèn)權(quán)設貍輕爭牽蕉狹池潛查糖笑千誕柏鉗蝦易盟察螺人塘氏剛撥雄便裙掩差卵沿遞車泊獨秒偵欲圓琴毯運建逮言辮并粉鑰軋弟政過季誼黃薪昆悄幾君苗海垂森譜逐換秋么勺字潛子息裁拋翻穿睜幻能黨罩放叼對嫩產(chǎn)訓陳委悟喊只蝴方球俗艷飄泉病肚阿市末斷腎深漂私敏托鞏現(xiàn)桑晝結(jié)姐糧腐依炸杰謎涼不婆想寶振禽鑼桶寄經(jīng)序暈躁屠疾秧氏譯艇柿亮托惡笨仙搏減搬般匯討朽棟黃呆惑浩蘆仗沿這笛殃畫熔4B。http狀態(tài)碼中英文詳解-SEO培訓_天線貓SEO賺錢培訓官網(wǎng)。廣東seo聯(lián)系方式,賣房子怎么seo優(yōu)化,岳陽網(wǎng)站建設選擇樂云seo,樂云seo營銷,seo關(guān)鍵詞優(yōu)化的心得體會,肇慶seo關(guān)鍵詞排名
如果您覺得 http狀態(tài)碼中英文詳解-SEO培訓_天線貓SEO賺錢培訓官網(wǎng) 這篇文章對您有用,請分享給您的好友,謝謝!
- 1SEO優(yōu)化關(guān)鍵詞在優(yōu)化中起到什么作用
- 2SEO網(wǎng)站內(nèi)部鏈接優(yōu)化的注重事項
- 3SEO優(yōu)化技術(shù)學習的方法是什么
- 4網(wǎng)站SEO優(yōu)化_天線貓SEOSEO優(yōu)化公司做上海網(wǎng)站優(yōu)化提升頁面加載速度(從這四方面去入手)_SEO優(yōu)化SEO推廣SEO服務天線貓_
- 5SEO內(nèi)鏈優(yōu)化文章內(nèi)鏈布局策略
- 6SEO生存法則適當調(diào)整優(yōu)化策略穩(wěn)固SEO行業(yè)地位
- 7神馬搜索引擎優(yōu)化工具什么樣企業(yè)網(wǎng)站URL有利于
- 8SEO優(yōu)化如何幫助網(wǎng)站運營成功
- 9SEO幽默段子,心酸背后的輕松一刻
- 10SEO站長要想搜索引擎蜘蛛抓取網(wǎng)站要注重哪些