오류 코드
API는 요청 성공에 따라 의미상 유효한 HTTP 응답 코드를 반환합니다. 다음 표는 반환할 응답 코드에 대한 참조로 사용할 수 있습니다.
모든 오류는 HTTP 상태 코드와 실제 응답 본문 내의 코드 및 응답 메시지로 표시됩니다.
HTTP 상태 코드
HTTP 상태 코드에 여러 가지 이유가 있는 경우 API에서 반환한 오류 코드를 사용하십시오.
HTTP | 의미 |
---|---|
200 | Success |
400 |
|
401 | You must be authenticated to perform this action |
403 | Invalid API key |
404 | A requested object was not found |
408 | Your request timed out |
415 | Invalid format |
500 | There was internal server error while processing your request |
503 |
|
오류 코드
다음 표에서는 API로 작업할 때 나타날 수 있는 코드를 설명합니다.
The YouRepo API attempts to return appropriate error codes for every request.
이러한 규칙에는 한 가지 예외가 있습니다:
- 잘못된 형식은 응답 본문으로 오류 메시지와 함께 HTTP 415를 반환합니다.
암호 | 의미 |
---|---|
0 |
|
1 | Endpoint not valid |
2 | Missing or invalid argument |
3 | Endpoint resource not valid |
4 | You must be authenticated to perform this action |
5 | Invalid API key |
7 | You cannot access this resource using %(request_method)s |
8 | A requested object was not found |
9 | You cannot access this resource using your %(access_type)s API key |
10 | This operation is not supported |
11 | Your API key is not valid on this domain |
12 | This application does not have enough privileges to access this resource |
13 | You have exceeded the rate limit for this resource |
14 | You have exceeded the rate limit for your account |
15 | There was internal server error while processing your request |
16 | Your request timed out |
17 | The authenticated user does not have access to this feature |
18 | The authorization signature you passed was not valid |
19 | You must re-submit this request with a response to the captcha challenge |
20 | The API is currently undergoing maintenance, and your changes were saved, but will not be visible yet. |
21 | The API is currently undergoing maintenance, and your changes could not be saved. |
22 | You do not have the appropriate permissions to access this resource |
24 | You have exceeded the maximum number of creations for this resource |