Q. body에도 status code를 담아서 보내야 할까?
반대
https://stackoverflow.com/questions/43850093/should-response-of-rest-api-contain-http-result-code
https://stackoverflow.com/questions/69945370/status-code-inside-the-body-of-a-rest-api-response
https://haim.dev/posts/2023-04-02-duplicating-http-status-in-response-body-is-an-antipattern/
찬성
https://blog.storyg.co/rest-api-response-body-best-pratics
--> 흠 status line에 이미 status가 설정되어 있는데 body에도 담는 건 불필요해 보임
--> http status 아니라 따로 정의된 status라면 ㄱㅊ은 듯
Q. status code는 어떻게 설정해야 할까?
https://potato-hyun.tistory.com/43
--> 보안 때문에 status를 모두 200으로 설정하는 경우도 있구나