You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
HTTP 상태코드 소개
상태 코드 - 클라이언트가 보낸 요청의 처리 상태를 응답에서 알려주는 기능
만약 모르는 상태 코드가 나타난다면 ?
1xx (Informational) - 요청이 수신되어 처리중
2xx - 성공
200 OK
201 Created
202 Accepted
204 No Content
3xx - 리다이렉션1
3xx (Redirection) - 요청을 완료하기 위해 유저 에이전트의 추가 조치 필요
300 Multiple Choices
301 Moved Permanently
302 Found
303 See Other
304 Not Modified
307 Temporary Redirect
308 Permanent Redirect
웹 브라우저는 3xx 응답의 결과에 Location 헤더가 있으면, Location 위치로 자동 이동한다. 그것이 리다이렉트 이다.
리다이렉션의 종류
영구 리다이렉션 (301, 308)
영구 리다이렉션 - 301
영구 리다이렉션 - 308
3xx - 리다이렉션2
일시적인 리다이렉션 (302, 307, 303)
PRG : POST/ REDIRECT/ GET - 일시적인 리다이렉션 예시
정리 !
기타 리다이렉션 (300, 304)
4xx -클라이언트 오류, 5xx -서버 오류
4xx (Client Error) - 클라이언트 오류
400 Bad Request - 클라이언트가 잘못된 요청을 해서 서버가 요청을 처리할 수 없음
401 Unauthorized - 클라이언트가 해당 리소스에 대한 인증이 필요하다.
403 Forbidden - 서버가 요청을 이해했지만 승인을 거부함
404 Not Found - 요청 리소스를 찾을 수 없을 경우
5xx (Server Error) - 서버 오류
500 Internal Server Error - 서버 문제로 오류 발생, 애매하면 500 오류
503 Service Unavailable - 서비스 이용 불가
🔗출처
All reactions