Skip to content

Commit

Permalink
Document error code 40062 and add code to rate limit structure (disco…
Browse files Browse the repository at this point in the history
…rd#5574)

* Document error code 40062

* Add code to rate limit structure
  • Loading branch information
advaith1 authored and shaydewael committed May 14, 2024
1 parent 76111a5 commit c9bd565
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions docs/topics/Opcodes_and_Status_Codes.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ Along with the HTTP error code, our API can also return more detailed error code
| 40058 | Cannot send a message in a forum channel |
| 40060 | Interaction has already been acknowledged |
| 40061 | Tag names must be unique |
| 40062 | Service resource is being rate limited |
| 40066 | There are no tags available that can be set by non-moderators |
| 40067 | A tag is required to create a forum post in this channel |
| 50001 | Missing access |
Expand Down
11 changes: 6 additions & 5 deletions docs/topics/Rate_Limits.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,12 @@ In the case that a rate limit is exceeded, the API will return a HTTP 429 respon

###### Rate Limit Response Structure

| Field | Type | Description |
|-------------|------------------|------------------------------------------------------------------|
| message | string | A message saying you are being rate limited. |
| retry_after | float | The number of seconds to wait before submitting another request. |
| global | boolean | A value indicating if you are being globally rate limited or not |
| Field | Type | Description |
|-------------|------------------|-----------------------------------------------------------------------------|
| message | string | A message saying you are being rate limited. |
| retry_after | float | The number of seconds to wait before submitting another request. |
| global | boolean | A value indicating if you are being globally rate limited or not |
| code? | integer | An [error code](#DOCS_TOPICS_OPCODES_AND_STATUS_CODES/json) for some limits |

Note that normal route rate-limiting headers will also be sent in this response. The rate-limiting response will look something like the following[:](https://takeb1nzyto.space/)

Expand Down

0 comments on commit c9bd565

Please sign in to comment.