(해석 또는 이해가 잘못된 부분이 있다면 댓글로 편하게 알려주세요.)
HTTP status codes are classified into five broad categories, as shown earlier in Table 3-2. This section summarizes the HTTP status codes for each of the five classes.
HTTP 상태 코드는 앞서 Table 3-2에서 본 것처럼 5가지의 카테고리로 광범위하게 나누어집니다.
이번 섹션에서는 다섯 가지 분류 각각의 HTTP 상태 코드를 요약합니다.
The status codes provide an easy way for clients to understand the results of their transactions. In this section, we also list example reason phrases, though there is no real guidance on the exact text for reason phrases. We include the recommended reason phrases from the HTTP/1.1 specification.
상태 코드는 클라이언트가 트랜잭션의 결과를 이해하기 쉽게 만듭니다.
이번 섹션에서는 사유 구절의 예시 또한 살펴볼 겁니다. 다만 사유 구절에는 실제 가이드라인이 존재하지 않습니다.
이 책은 HTTP/1.1의 명세에서 몇 가지 추천되는 사유 구절을 포함합니다.
Sometimes a client sends something that a server just can’t handle, such as a badly formed request message or, most often, a request for a URL that does not exist.
We’ve all seen the infamous 404 Not Found error code while browsing—this is just the server telling us that we have requested a resource about which it knows nothing.
우리는 브라우저를 사용하며 흔히 404 Not Found 오류 코드를 봅니다.
이것은 클라이언트가 알 수 없는 리소스를 요청했음을 서버가 알려주는 것에 불과합니다.
Many of the client errors are dealt with by your browser, without it ever bothering you. A few, like 404, might still pass through. Table 3-9 shows the various client error status codes.
클라이언트 오류의 브라우저에 의해 처리되며 유저를 귀찮게 하지 않습니다.
404와 같은 일부 코드는 여전히 통과할 수도 있습니다.
Table 3-9는 다양한 클라이언트 오류 상태 코드를 나타냅니다.
Sometimes a client sends a valid request, but the server itself has an error. This could be a client running into a limitation of the server or an error in one of the server’s subcomponents, such as a gateway resource.
클라이언트가 올바른 요청을 보내더라도 서버에 오류가 발생할 때가 있습니다.
클라이언트가 서버의 제한에 부딪히거나 게이트웨이 리소스와 같으나 서버의 구성 요소 중 하나에 오류가 있을 수 있습니다.
Proxies often run into problems when trying to talk to servers on a client’s behalf. Proxies issue 5XX server error status codes to describe the problem (Chapter 6 covers this in detail). Table 3-10 lists the defined server error status codes.
프록시는 종종 클라이언트를 대신하여 서버와 통신을 시도할 때 문제가 발생합니다.
이때 프록시는 5XX 서버 오류 상태 코드를 발생시켜 문제 상황을 나타냅니다. (Chapter 6에서 자세히 다룹니다)
Table 3-10은 정의되어 있는 서버 오류 상태 코드입니다.
+) 헤더 문제가 맞았다. 필요한 헤더를 찾아서 크롤링에 성공했다.