header:{
statusCode: 200
},
body:{ -> 위에 적은 response 형태
"postId": 1,
"content": "ahpuh",
"score": 100
}
GET, DELETE => header에 데이터 포함
POST, PUT => body에 데이터 포함
get, put → 200 ok
post → 201 created
Location: /posts/{postId} - 리스소가 생성된 위치 (헤더)
delete → 200 ok (응답 바디 있을 경우) vs 204 no-content (응답 바디 없을 경우)
참고해봅시다 https://www.notion.so/backend-devcourse/API-bee4c074598e40d7bcf09905a3c2cf03