HTTP 상태 코드
그 번호의 뜻, 그리고 언제 보낼지.
예제는 입력과 설정을 일시적으로 바꿉니다. 이전 작업을 복원할 수 있습니다.
0자
- 코드
- 38
출력
1xx 정보 — 요청을 받았고 처리가 이어짐
2xx 성공 — 잘 됐음
3xx 리다이렉트 — 다른 곳을 볼 것
4xx 요청 오류 — 대개 클라이언트가 고칠 수 있음
5xx 서버 오류 — 클라이언트는 다시 시도할 수밖에 없음
100 Continue (계속)
Carry on sending the body; the headers were acceptable.
101 Switching Protocols (프로토콜 전환)
Agreed — usually the handshake into a WebSocket.
200 OK (성공)
It worked, and the body is the answer.
201 Created (생성됨)
It worked and something new exists; Location says where.
202 Accepted (접수됨)
Taken in, not done yet. Nothing promises it will succeed.
204 No Content (내용 없음)
It worked and there is deliberately nothing to send back.
206 Partial Content (부분 내용)
Here is the range you asked for — how video seeking works.
301 Moved Permanently (영구 이동)
Use the new address from now on; search engines move their index.
302 Found (임시로 다른 곳에 있음)
Temporarily elsewhere. Keep using this address.
303 See Other (다른 주소 참조)
Done — now GET that other address. The answer to a form POST.
304 Not Modified (변경 없음)
Your copy is current; nothing is sent. The point of caching.
307 Temporary Redirect (임시 리다이렉트)
Like 302 but the method must not change.
308 Permanent Redirect (영구 리다이렉트)
Like 301 but the method must not change.
400 Bad Request (잘못된 요청)
The request itself is malformed. Not the same as invalid data.
401 Unauthorized (인증되지 않음)
Not authenticated. Misnamed: it means “who are you?”.
402 Payment Required (결제 필요)
Reserved for years, now used by some APIs for quota and billing.
403 Forbidden (금지됨)
Authenticated and still not allowed. “I know who you are; no.”
404 Not Found (찾을 수 없음)
Nothing here, and nothing said about whether there ever was.
405 Method Not Allowed (허용되지 않은 메서드)
The address exists; that verb does not work on it.
406 Not Acceptable (받아들일 수 없음)
Nothing can be produced that matches the Accept header.
408 Request Timeout (요청 시간 초과)
The client took too long to send it.
409 Conflict (충돌)
It clashes with the current state — an edit against a stale version.
410 Gone (삭제됨)
It was here and is deliberately gone. Stronger than 404.
413 Payload Too Large (요청이 너무 큼)
The body is bigger than the server will take.
415 Unsupported Media Type (지원하지 않는 미디어 유형)
The Content-Type is not one this endpoint reads.
418 I'm a teapot (나는 찻주전자)
A 1998 April Fools joke, in the standard, still implemented for fun.
422 Unprocessable Content (처리할 수 없는 내용)
Well formed, but the data fails validation. The one people want when they reach for 400.
425 Too Early (너무 이름)
Refusing a replayable request sent in TLS early data.
428 Precondition Required (전제 조건 필요)
Send an If-Match so you do not overwrite somebody blindly.
429 Too Many Requests (요청이 너무 많음)
Rate limited. Retry-After says how long to wait.
431 Request Header Fields Too Large (헤더가 너무 큼)
Usually one enormous cookie.
451 Unavailable For Legal Reasons (법적인 이유로 이용 불가)
Blocked by law. The number is a Fahrenheit 451 joke.
500 Internal Server Error (서버 내부 오류)
Something threw. The catch-all, and a sign nothing more specific was chosen.
501 Not Implemented (구현되지 않음)
The server does not support that method at all.
502 Bad Gateway (잘못된 게이트웨이)
A proxy got nonsense from upstream. Usually the app behind it is down.
503 Service Unavailable (서비스 이용 불가)
Temporarily down or overloaded; Retry-After may say when.
504 Gateway Timeout (게이트웨이 시간 초과)
A proxy waited for upstream and gave up.
507 Insufficient Storage (저장 공간 부족)
No room to hold what was sent.파일은 내 기기 밖으로 나가지 않습니다
이 도구는 브라우저 안에서만 작동합니다. 붙여넣은 내용은 기기에서 처리되고 서버로 전송되지 않으므로 토큰, 키, 공개 전 문서도 안심하고 사용할 수 있습니다.
사용 예시
사용 예제 — HTTP 상태 코드
입력 줄을 순서대로 입력하고 아래 설정을 사용하세요. 결과를 출력 줄과 비교하세요.
| 항목 | 값 |
|---|---|
| 입력 1 | 404 |
| 출력 1 | 404 Not Found (찾을 수 없음) |
| 출력 2 | Nothing here, and nothing said about whether there ever was. |
| 출력 3 | 410 Gone (삭제됨) |
| 출력 4 | It was here and is deliberately gone. Stronger than 404. |
404는 Not Found를 뜻합니다. 설명에서 404와 비교하는 410도 검색될 수 있습니다. URL에 요청을 보내지는 않습니다.
사용 방법
- 비워 두면 분류별 전체 목록이 나옵니다.
- 번호를 넣으면 해당 코드 하나가 나옵니다.
- 4xx를 넣으면 그 분류 전체가 나옵니다.
- cache, redirect 같은 단어로도 찾을 수 있습니다.
자주 묻는 질문
- 401과 403은 어떻게 다른가요?
- 401은 “당신이 누구인지 모르겠다”——인증하고 다시 시도하라는 뜻입니다. 403은 “누구인지는 알겠고, 그래도 안 된다”는 뜻입니다. 401의 이름이 Unauthorized(인가되지 않음)인데 의미는 미인증이라, 끊임없이 반대로 쓰입니다.
- 400과 422 중 무엇을 써야 하나요?
- 400은 요청 자체가 망가졌을 때——JSON이 깨졌거나 헤더가 빠졌을 때입니다. 422는 구문은 읽혔는데 내용이 검증을 통과하지 못했을 때입니다. 많은 사람이 400을 꺼내는 상황은 사실 422입니다.
- 418은 뭔가요?
- 1998년 만우절 농담이지만 실제 RFC에 실려 있고 구현도 되어 있으며, 삭제 제안이 주기적으로 올라왔다 사라집니다. 뜻은 “나는 찻주전자다”입니다.
- 리다이렉트는 어느 것을 써야 하나요?
- 영구 이전이고 검색엔진 색인도 옮기고 싶다면 301, 일시적이면 302입니다. POST가 GET으로 바뀌면 곤란한 경우에는 308과 307을 씁니다. 이 둘은 그 이유 하나로 존재합니다.
- 서버로 전송되나요?
- 아니요. 브라우저 안에서만 동작하므로 입력한 내용은 컴퓨터를 벗어나지 않습니다.