더북(TheBook)

2.1.2 응답 메시지

응답 메시지는 상태 라인(status line), 응답 헤더(response headers), 빈 라인(blank line), 응답 본문(response body)의 네 부분으로 구성됩니다. 로그인 요청이 성공하면 서버는 다음과 같은 응답 메시지를 보냅니다.

응답 메시지 예

HTTP/1.1 200 OK                --- 상태 라인
Content-Type: application/json --- 응답 헤더
Content-Length: 85  
                               --- 빈 라인
{                              --- 응답 본문
  "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6..."
}