HTTP Status Codes yog dab tsi?

Cov txheej txheem:

HTTP Status Codes yog dab tsi?
HTTP Status Codes yog dab tsi?
Anonim

HTTP txheej xwm txheej xwm (tseem hu ua browser / internet yuam kev codes) yog cov txheej txheem teb cov lej muab los ntawm lub vev xaib servers hauv internet. Cov lis dej num pab txheeb xyuas qhov ua rau muaj teeb meem thaum nplooj ntawv web lossis lwm yam kev pabcuam tsis thauj khoom zoo.

Lo lus "HTTP xwm txheej code" yog lo lus siv rau cov kab xwm txheej HTTP uas suav nrog HTTP txheej xwm code thiab HTTP vim li cas kab lus.

Piv txwv li, kab xwm txheej HTTP 500: Internal Server yuam kev yog tsim los ntawm HTTP txheej xwm code ntawm 500 thiab HTTP vim li cas kab lus ntawm Internal Server yuam kev.

Image
Image

Tsib pawg ntawm HTTP txheej xwm txheej xwm yuam kev tshwm sim; cov no yog ob pawg loj:

4xx Client yuam kev

Pab pawg no suav nrog cov uas thov rau nplooj ntawv web lossis lwm cov peev txheej muaj cov ntsiab lus tsis zoo lossis tsis tuaj yeem sau rau qee qhov laj thawj, suav tias yog qhov txhaum ntawm tus neeg siv khoom (lub vev xaib surfer).

Qee cov neeg siv khoom yuam kev HTTP cov cai muaj xws li 404 (Tsis Pom), 403 (Forbidden), thiab 400 (Kev Thov Tsis Zoo).

5xx Server yuam kev

pab pawg no suav nrog cov uas thov rau nplooj ntawv web lossis lwm cov peev txheej nkag siab los ntawm lub vev xaib server, tab sis tsis muaj peev xwm sau nws vim qee yam.

Qee cov uas nquag muaj xws li 500 (Internal Server yuam kev), nrog rau 504 (Gateway Timeout), 503 (Kev Pabcuam Tsis Muaj), thiab 502 (Qhov Rooj Tsis Zoo).

Xav paub ntau ntxiv ntawm HTTP Status Codes

Lwm cov txheej xwm HTTP muaj nyob ntxiv rau 4xx thiab 5xx cov lej. Kuj tseem muaj 1xx, 2xx, thiab 3xx cov lis dej num uas yog cov ntaub ntawv, paub meej tias kev vam meej lossis hais kom hloov pauv, raws li. Cov hom ntxiv no tsis yog qhov yuam kev, yog li koj yuav tsum tsis txhob ceeb toom txog lawv hauv browser.

Saib cov npe ua tiav ntawm peb nplooj HTTP Status Code yuam kev, lossis saib tag nrho cov kab xwm txheej HTTP (1xx, 2xx, thiab 3xx) hauv peb cov kab HTTP txheej xwm daim.

IANA's Hypertext Transfer Protocol (HTTP) Status Code Registry nplooj ntawv yog lub hauv paus rau HTTP txheej xwm cov lej, tab sis qee zaum Windows suav nrog ntxiv, tshwj xeeb tsis raug uas piav qhia cov ntaub ntawv ntxiv.

Piv txwv li, thaum txoj cai ntawm 500 txhais tau tias Internet Server yuam kev, Microsoft Internet Information Services (ISS) siv 500.15 txhais tau tias Kev thov ncaj qha rau Global.aspx tsis tau tso cai.

Ntawm no yog ob peb yam piv txwv ntxiv:

  • 404.13 muaj HTTP vim li cas kab lus ntawm Cov ntsiab lus ntev dhau lawm.
  • 500.53 txhais tau tias Ib qho yuam kev rov sau dua thaum RQ_RELEASE_REQUEST_STATE ceeb toom tuav. Kev ua txhaum txoj cai tawm sab nraud tshwm sim. Txoj cai raug teeb tsa kom ua tiav ua ntej tso zis neeg siv cache tau hloov kho.
  • 502.3 txhais tau tias Lub Rooj vag tsis zoo: Kev xa mus rau kev sib txuas yuam kev (ARR).

Cov npe hu ua sub-codes tsim los ntawm Microsoft ISS tsis hloov HTTP txheej xwm cov lej, tab sis hloov tau pom nyob rau ntau qhov chaw ntawm Windows, zoo li cov ntaub ntawv pov thawj.

Tsis yog txhua tus lej yuam kev cuam tshuam

Tus lej HTTP tsis zoo ib yam li Tus Thawj Tswj Ntaus Ntawv yuam kev lossis tus lej yuam kev. Qee qhov kev ua yuam kev cov lej qhia cov lej lej nrog HTTP txheej xwm cov lej, tab sis lawv txawv qhov yuam kev nrog cov lus yuam kev sib txawv thiab cov ntsiab lus.

Piv txwv li, HTTP txheej xwm code 403.2 txhais tau tias Read access forbidden. Txawm li cas los xij, tseem muaj txoj cai yuam kev 403 uas txhais tau tias txheej txheem tsis nyob rau hauv keeb kwm kev ua haujlwm.

Ib yam li ntawd, 500 txoj cai uas txhais tau tias Internet Server yuam kev tuaj yeem tsis meej pem rau qhov system yuam kev 500 uas txhais tau tias User profile tsis tuaj yeem thauj khoom.

Txawm li cas los xij, cov no tsis cuam tshuam thiab yuav tsum tsis txhob raug kho zoo ib yam. Ib qho qhia hauv web browser thiab piav qhia cov lus yuam kev txog tus neeg siv khoom lossis cov server, thaum lwm qhov tshwm sim nyob rau lwm qhov hauv Windows thiab tsis tas yuav koom nrog lub web browser txhua.

Yog tias koj muaj teeb meem txheeb xyuas seb tus lej yuam kev koj pom yog tus lej HTTP, ua tib zoo saib qhov twg cov lus pom. Yog tias koj pom qhov yuam kev hauv koj lub web browser, ntawm nplooj ntawv web, nws yog HTTP teb chaws.

Lwm cov lus yuam kev yuav tsum tau hais cais raws li cov ntsiab lus uas lawv tau pom: Tus Thawj Tswj Ntaus Ntawv yuam kev tau pom hauv Tus Thawj Tswj Ntaus Ntawv, cov lej yuam kev raug tso tawm thoob plaws Windows, POST cov lej tau muab thaum lub Hwj Chim Ntawm Tus Kheej Kev xeem, kev ua si / app tshwj xeeb yuam kev yog cuam tshuam rau cov kev pab cuam, thiab lwm yam.

Pom zoo: