0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 09:31:22 -05:00

feat(std/http): add TooEarly status code (#5999)

As per [RFC 8470 5.2](https://tools.ietf.org/html/rfc8470#section-5.2)
This commit is contained in:
Voltra 2020-05-31 19:49:33 +02:00 committed by GitHub
parent 10573183af
commit aa514c058a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -93,6 +93,8 @@ export enum Status {
Locked = 423,
/** RFC 4918, 11.4 */
FailedDependency = 424,
/** RFC 8470, 5.2 */
TooEarly = 425,
/** RFC 7231, 6.5.15 */
UpgradeRequired = 426,
/** RFC 6585, 3 */
@ -173,6 +175,7 @@ export const STATUS_TEXT = new Map<Status, string>([
[Status.UnprocessableEntity, "Unprocessable Entity"],
[Status.Locked, "Locked"],
[Status.FailedDependency, "Failed Dependency"],
[Status.TooEarly, "Too Early"],
[Status.UpgradeRequired, "Upgrade Required"],
[Status.PreconditionRequired, "Precondition Required"],
[Status.TooManyRequests, "Too Many Requests"],