그저 내가 되었고

🌟HTTP:: HTTP Status Code 본문

개발/CS

🌟HTTP:: HTTP Status Code

hyuunii 2022. 12. 15. 23:11

418 에러....

주요 상태 코드

- 200: OK, 요청이 성공적으로 됨. 정보는 요청에 따른 응답을 반환함.

- 400: Bad Request, 잘못된 문법으로 서버가 요청을 이해할 수 없음.

- 401: Unauthorized, 의미상으로는 비인증(Unauthenticated)임. 클라이언트는 요청한 응답을 받기 위해 반드시 스스로를 인증해야 함.

- 403: Forbidden, 클라이언트는 컨텐츠에 접근할 권리가 없음. 예컨대 미승인이어서 서버는 거절을 위한 적절한 응답을 보냄. 401과 달느 점은 서버가 클라이언트가 누구인지는 알고 있음.

- 404: Not Found, 서버가 요청받은 리소스를 찾을 수 없음. 브라우저에서는 알려지지 않은 URL을 의미. API에서 종점은 적절하지만 리소스 자체는 존재하지 않음을 의미할 수 있음. 서버들은 인증받지 않은 클라이언트로부터 리소스를 숨기기 위하여 이 응답을 403 대신에 전송할 수도 있다.

- 503: Service Unavailable, 서버가 요청을 처리할 준비가 되지 않음. 유지 보수를 위해 작동이 중단되거나 과부하가 걸린 서버일 경우 발생.

 

상태 코드 그룹별 상태 분류

Status Code Status
1XX(Information responses) 요청받았으며, 프로세스가 계속 진행함.
2XX(Successful responses) 요청을 성공적으로 받았으며 인식했고 수용함.
3XX(Redirection message) 요청 완료를 위해 추가 작업 조치가 필요.
4XX(Client error response) 요청의 문법이 잘못되었거나 요청을 처리할 수 없음.
5XX(Server error response) 서버가 명백히 유효한 요청에 대해 충족을 실패함.

 

 

418 에러 I'm a teapot!(?)

418 I'm a teapot
서버는 커피를 찻 주전자에 끓이는 것을 거절합니다.

아니 모질라 보다가 이런 파격적으로 귀여운 내용을ㅋㅋㅋㅋㅋㅋㅋ 발견했돠.

여러 문서 읽어본 결과.. 걍 한마디로 말하자면 만우절 재능 낭비ㅋㅋㅋ

 

The code 418 is used to return “I’m a teapot” when the server is requested to brew coffee. The HTTP methods to interface with such a server had to clearly be updated to to allow the command “BREW” to be used instead of the traditional “POST” stating that using POST in this situation is deprecated. The command “GET” now “retrieves” a coffee from the server rather than returning information as normal. “PROPFIND” is used to return metadata about the coffee and the command “WHEN” is used to state when the HTCPCP (Hyper Text Coffee Pot Control Protocol) should stop pouring coffee, referencing the usual “Say when” of making someone else’s coffee.

 

관련 내용 더 궁금하다면 아래 링크 참조!!

https://www.berkeleysquares.co.uk/2021/06/html-response-code-418-why-youve-never-heard-of-it-and-never-will-again/

 

HTML Response code: 418, why you’ve never heard of it and never will again

HTTP status codes are an important part of how websites are used and how users are able to interact with them. A 200 status code is the most common meaning OK or successful, indicating that the page has been transmitted correctly.

www.berkeleysquares.co.uk

https://ivorycirrus.github.io/archivers/i-am-a-teapot

 

HTTP 상태코드 418 - I'm a teapot « IvoryCirrus's Lab.

만일 멀리 떨어진 곳에 있는 커피포트를 원격으로 제어해서 커피를 끓이고자 한다면 어떤 방식으로 통신을 해야 할까? 이 주제에 대해 국제 인터넷 표준화 기구(IETF)에서는 꽤 오래전 HTTP 프로토

ivorycirrus.github.io