Upgrade to Pro — share decks privately, control downloads, hide ads and more …

HTTPステータスコード 完全に理解した

HTTPステータスコード 完全に理解した

『完全に理解した人達の「Web技術」Talk #2 』の発表スライドです
https://easy2.connpass.com/event/167520/

unsoluble_sugar

February 27, 2020
Tweet

More Decks by unsoluble_sugar

Other Decks in Technology

Transcript

  1. εςʔλείʔυ͸ϔομ1ߦ໨ HTTP/1.1 200 OK
 Date: Sat, 22 Feb 2020 08:09:30

    GMT
 Content-Type: application/json; charset=utf-8
 Connection: keep-alive
 Server: nginx
 ETag: "e287c729017cc9785487098b6b103af6"
 Cache-Control: max-age=0, private, must-revalidate
 X-UA-Compatible: IE=Edge,chrome=1
 X-Runtime: 0.003487
  2. 410 Gone • ϦΫΤετ͞Εͨίϯςϯπ͕αʔό͔ΒӬٱʹ࡟আ͞ΕɺసૹઌΞυϨε ͕ͳ͍৔߹ • 404ͱҧ͍ʮ͔ͭͯଘࡏ͍͕ͯͨ͠ࠓ͸΋͏ଘࡏ͍ͯ͠ͳ͍ʯ͜ͱΛද͢ • ظؒݶఆͷϓϩϞʔγϣϯαΠτͳͲͰར༻͢Δ͜ͱΛҙਤ͍ͯ͠Δ •

    Ϣʔβʔ৘ใΛѻ͏APIͰ410Λฦ͢࢓༷͸ɺݸਓ৘ใอޢͷ؍఺͔Β໰୊ࢹ ͞ΕΔՄೳੑ΋͋Δʢ࡟আͨ͠ͱ͍͏৘ใΛอ͍࣋ͯ͠Δ㲈׬શʹ࡟আ͞Εͯ ͍ͳ͍ʣ
  3. ࢀߟURL • HTTP Ϩεϙϯεεςʔλείʔυ - HTTP | MDN
 https://developer.mozilla.org/ja/docs/Web/HTTP/Status •

    IETF Documents
 https://tools.ietf.org/html/ • HTTPεςʔλείʔυ - Wikipedia
 https://ja.wikipedia.org/wiki/HTTPεςʔλείʔυ