> For the complete documentation index, see [llms.txt](https://mellona-log.gitbook.io/log/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mellona-log.gitbook.io/log/cs/http/undefined/206-partial-content.md).

# 응답 206 partial content

> [참고 문서](https://developer.mozilla.org/ko/docs/Web/HTTP/Status/206)

HTTP **`206 Partial Content`** 는 [`Range`](https://developer.mozilla.org/ko/docs/Web/HTTP/Headers/Range) 헤더에 기술된 데이터 범위에 대한 요청이 성공적으로 응답되어 본문에 해당되는 데이터를 담고 있다는 것을 알려줍니다.

만약 단일 범위 요청을 한 경우엔, 전체 응답의 [`Content-Type`](https://developer.mozilla.org/ko/docs/Web/HTTP/Headers/Content-Type)은 문서 타입으로 설정되며, [`Content-Range`](https://developer.mozilla.org/ko/docs/Web/HTTP/Headers/Content-Range)가 제공됩니다.

만약 다중 범위 요청에 대한 응답이라면, [`Content-Type`](https://developer.mozilla.org/ko/docs/Web/HTTP/Headers/Content-Type)는 `multipart/byteranges`로 되며 분할된 데이터의 응답은 [`Content-Range`](https://developer.mozilla.org/ko/docs/Web/HTTP/Headers/Content-Range)와 [`Content-Type`](https://developer.mozilla.org/ko/docs/Web/HTTP/Headers/Content-Type)로 각각의 범위를 기술합니다.

### [상태](https://developer.mozilla.org/ko/docs/Web/HTTP/Status/206#%EC%83%81%ED%83%9C) <a href="#undefined" id="undefined"></a>

httpCopy to Clipboard

```
206 Partial Content
```

### [예제](https://developer.mozilla.org/ko/docs/Web/HTTP/Status/206#%EC%98%88%EC%A0%9C) <a href="#undefined" id="undefined"></a>

응답이 단일 범위를 가지고 있는 경우,

httpCopy to Clipboard

```
HTTP/1.1 206 Partial Content
Date: Wed, 15 Nov 2015 06:25:24 GMT
Last-Modified: Wed, 15 Nov 2015 04:58:08 GMT
Content-Range: bytes 21010-47021/47022
Content-Length: 26012
Content-Type: image/gif

# 26012 bytes of partial image data…
```

응답이 여러 범위를 가지고 있는 경우,

httpCopy to Clipboard

```
HTTP/1.1 206 Partial Content
Date: Wed, 15 Nov 2015 06:25:24 GMT
Last-Modified: Wed, 15 Nov 2015 04:58:08 GMT
Content-Length: 1741
Content-Type: multipart/byteranges; boundary=String_separator

--String_separator
Content-Type: application/pdf
Content-Range: bytes 234-639/8000

# the first range
--String_separator
Content-Type: application/pdf
Content-Range: bytes 4590-7999/8000

# the second range
--String_separator--
```
