오류 처리

API는 기존 HTTP 응답 코드를 사용하여 API 요청의 결과를 나타냅니다. 2xx 범위의 코드는 성공을 나타내고, 4xx 범주는 제공된 정보의 오류 혹은 액세스 제한을 나타내며 5xx 코드는 서버에 오류가 있음을 나타냅니다.

API 오류 메시지는 헤더에 JSON 형식과 HTTP 상태로 반환됩니다. JSON 형식은 에러 코드, 에러 타입, 에러 상세 설명으로 반환됩니다.



4XX Error Code

400 BAD REQUEST

CodeTypeDescription
40001Invalid Body ParametersThe entries provided as body parameters were not valid for the request.
40002Invalid Query ParametersThe entries provided as query parameters were not valid for the request.
40003Missing Required Body ParametersThe request is missing some required body parameters.
40004Missing Required Query ParametersThe request is missing the required query parameters.
40005Rule ViolationThe request violated some logic requirement.
40006Missing Required Header ParametersThe request is missing some required header parameters.
40007Invalid Path ParametersThe entries provided as path parameters were not valid for the request.

401 UNAUTHORIZED

CodeTypeDescription
401001Invalid KeyThe method requires authentication, but it was not presented or is invalid.

403 FORBIDDEN

CodeTypeDescription
403001Access DeniedThe authentication token in use is restricted and cannot access the requested resource.
403002Account LimitThe plan limit for a resource has been reached.
403003Forbidden ActionThe plan is restricted and cannot perform this action.

404 NOT FOUND

CodeTypeDescription
404001Not FoundA resource id was not found.


5XX Error Code

500 INTERNAL SERVER ERROR

CodeTypeDescription
500001UnknownPossibly a temporary issue due to downtime. Wait and retry the operation.

!!! 내용 완료 개발팀 확인 필요.