요약
- 요청은 올바르지만 요청을 처리할 수 없을 때 사용한다
- ex) 엔티티의 생성 가능한 최대 개수 초과
https://stackoverflow.com/questions/51990143/400-vs-422-for-client-error-request
400 vs 422 for Client Error Request
I've read a lot of posts and articles regarding proper http status code to return for client request error. Others suggest to use 400 as it has been redefined in RFC 7231 though I'm not sure if the
stackoverflow.com
https://developer.mozilla.org/ko/docs/Web/HTTP/Status/422
422 Unprocessable Content - HTTP | MDN
하이퍼텍스트 전송 프로토콜(HTTP) 422 Unprocessable Content 응답 상태 코드는 서버가 요청 엔티티의 컨텐츠 형식을 이해했고 요청 엔티티의 문법도 올바르지만 요청된 지시를 처리할 수 없음을 나타
developer.mozilla.org
'Computer Science' 카테고리의 다른 글
[DB] FK Constraint를 실무에서는 사용하지 않는 이유 (0) | 2024.07.12 |
---|---|
[DB] MySQL에서 WHERE IN, JOIN, EXISTS의 성능 비교 (0) | 2024.07.05 |
[Network][스크랩] Bearer Authentication 헤더 규칙이 정해진 배경 (0) | 2024.06.24 |
Reactive Programming (0) | 2024.04.16 |
[Network] HTTP response status code (0) | 2024.04.06 |