HTTP 422 Status Code
Context
API 구현해놓고 테스트하는데 422 에러
What I Learned
HTTP 422: “Unprocessable Entity”
Client error - the server understood the content type of the request content, and the syntax of the request content was correct, but it was unable to process the contained instructions.
대표 발생 케이스:
- validation failure (e.g., not an email)
- correct type but invalid
- correct schema but required field missing
Note
내 경우 데이터의 id가 varchar 대신 bigint 여서 number 로 id 넘기다가 overflow 되어 버린 게 원인이었다
DB table에 id 만들 때 왜 bigint로 넣은거야 ??