Skip to content

spec: add missing TOOMANYREQUESTS (429) error-code - #209

Merged
jdolitsky merged 1 commit into
opencontainers:masterfrom
thaJeztah:fix_missing_rate_limit
Nov 3, 2020
Merged

jdolitsky merged 1 commit into
opencontainers:masterfrom
thaJeztah:fix_missing_rate_limit

Conversation

@thaJeztah

Copy link
Copy Markdown
Member

The TOOMANYREQUESTS error code was added in distribution/distribution#1693, and added to the documentation in distribution/distribution#1833.

While it's documented in various examples, it never made it to the list of allowed error-codes.

This patch is fixing that omission and adding it to the list of valid error-codes that can be returned by registries

The `TOOMANYREQUESTS` error code was added in distribution/distribution#1693,
and added to the documentation in distribution/distribution#1833.

While it's documented in various examples, it never made it to the list
of allowed error-codes.

This patch is fixing that omission and adding it to the list of valid
error-codes that can be returned by registries

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah

Copy link
Copy Markdown
Member Author

Comment thread spec.md
| code-14 | `DENIED` | requested access to the resource is denied |
| code-15 | `UNSUPPORTED` | the operation is unsupported |
| code-15 | `UNSUPPORTED` | the operation is unsupported |
| code-16 | `TOOMANYREQUESTS` | too many requests |

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just picked the "next in line", not sure if these numbers are used anywhere

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

they arent referenced anywhere yet

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for checking! I looked a bit as well, and couldn't find references, but thought I'd comment, just in case I missed them somewhere 😅

@jdolitsky jdolitsky added this to the v1.0.0-rc2 milestone Nov 2, 2020

@dmcgowan dmcgowan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jdolitsky
jdolitsky merged commit 703802f into opencontainers:master Nov 3, 2020
@thaJeztah
thaJeztah deleted the fix_missing_rate_limit branch November 3, 2020 15:31
@jdolitsky jdolitsky mentioned this pull request Mar 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants