tool::http-status-detail
200 OK
The request has succeeded.
상태 코드
200
이름
OK
카테고리
2xx상세 설명
HTTP 200 OK는 클라이언트의 요청이 성공적으로 처리되었음을 나타내는 가장 기본적인 성공 상태 코드입니다. GET 요청에서는 리소스가 응답 본문에 포함되고, POST 요청에서는 작업 결과가 반환됩니다. 웹 브라우저와 API 클라이언트 모두에서 가장 많이 받는 응답 코드입니다.
주요 원인
- ▸GET 요청으로 리소스를 정상적으로 조회한 경우
- ▸POST 요청이 성공적으로 처리된 경우
- ▸PUT/PATCH로 리소스 업데이트가 완료된 경우
- ▸HEAD 요청으로 리소스 존재 여부를 확인한 경우
해결 방법
- 1.200은 정상 응답이므로 수정이 필요하지 않습니다
- 2.새 리소스 생성 시에는 200 대신 201 Created를 사용하세요
- 3.응답 본문이 없는 경우 204 No Content가 더 적절합니다
- 4.캐싱을 활용하려면 ETag, Last-Modified 헤더를 함께 보내세요
관련 HTTP 헤더
Content-TypeContent-LengthETagCache-ControlLast-Modified응답 예시
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 27
{"status":"ok","id":12345}관련 상태 코드
201CreatedThe request has been fulfilled and a new resource has been created.→202AcceptedThe request has been accepted but not yet acted upon.→203Non-Authoritative InformationThe response is from a transforming proxy, not the origin server.→204No ContentThe server successfully processed the request but returns no content.→205Reset ContentThe server processed the request; the client should reset the document view.→
ad · 300×250
// related tools