6장. Controller와 오류 계약
Controller는 HTTP status, header, DTO 변환을 맡는다. Exception Filter에서 Problem Details와 correlation id를 만든다. throw new Error를 사용자 입력 오류에 쓰지 않는다.
pagination, sort allowlist, max page size를 둔다. GET에 side effect를 넣지 않는다.
WEBBOOK CHAPTER
Controller는 HTTP status, header, DTO 변환을 맡는다. Exception Filter에서 Problem Details와 correlation id를 만든다. throw new Error를 사용자 입력 오류에 쓰지 않는다.
pagination, sort allowlist, max page size를 둔다. GET에 side effect를 넣지 않는다.