Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Status

import { Status } from "https://raw.githubusercontent.com/mandarineorg/mandarinets/master/deps.ts";

HTTP status codes

enum Status {
Continue = 100,
SwitchingProtocols = 101,
Processing = 102,
EarlyHints = 103,
OK = 200,
Created = 201,
Accepted = 202,
NonAuthoritativeInfo = 203,
NoContent = 204,
ResetContent = 205,
PartialContent = 206,
MultiStatus = 207,
AlreadyReported = 208,
IMUsed = 226,
MultipleChoices = 300,
MovedPermanently = 301,
Found = 302,
SeeOther = 303,
NotModified = 304,
UseProxy = 305,
TemporaryRedirect = 307,
PermanentRedirect = 308,
BadRequest = 400,
Unauthorized = 401,
PaymentRequired = 402,
Forbidden = 403,
NotFound = 404,
MethodNotAllowed = 405,
NotAcceptable = 406,
ProxyAuthRequired = 407,
RequestTimeout = 408,
Conflict = 409,
Gone = 410,
LengthRequired = 411,
PreconditionFailed = 412,
RequestEntityTooLarge = 413,
RequestURITooLong = 414,
UnsupportedMediaType = 415,
RequestedRangeNotSatisfiable = 416,
ExpectationFailed = 417,
Teapot = 418,
MisdirectedRequest = 421,
UnprocessableEntity = 422,
Locked = 423,
FailedDependency = 424,
TooEarly = 425,
UpgradeRequired = 426,
PreconditionRequired = 428,
TooManyRequests = 429,
RequestHeaderFieldsTooLarge = 431,
UnavailableForLegalReasons = 451,
InternalServerError = 500,
NotImplemented = 501,
BadGateway = 502,
ServiceUnavailable = 503,
GatewayTimeout = 504,
HTTPVersionNotSupported = 505,
VariantAlsoNegotiates = 506,
InsufficientStorage = 507,
LoopDetected = 508,
NotExtended = 510,
NetworkAuthenticationRequired = 511,
}

§Members

§
Status.Accepted = 202
[src]

RFC 7231, 6.3.3

§
Status.AlreadyReported = 208
[src]

RFC 5842, 7.1

§
Status.BadGateway = 502
[src]

RFC 7231, 6.6.3

§
Status.BadRequest = 400
[src]

RFC 7231, 6.5.1

§
Status.Conflict = 409
[src]

RFC 7231, 6.5.8

§
Status.Continue = 100
[src]

RFC 7231, 6.2.1

§
Status.Created = 201
[src]

RFC 7231, 6.3.2

§
Status.EarlyHints = 103
[src]

RFC 8297 *

§
Status.ExpectationFailed = 417
[src]

RFC 7231, 6.5.14

§
Status.FailedDependency = 424
[src]

RFC 4918, 11.4

§
Status.Forbidden = 403
[src]

RFC 7231, 6.5.3

§
Status.Found = 302
[src]

RFC 7231, 6.4.3

§
Status.GatewayTimeout = 504
[src]

RFC 7231, 6.6.5

§
Status.Gone = 410
[src]

RFC 7231, 6.5.9

§
Status.HTTPVersionNotSupported = 505
[src]

RFC 7231, 6.6.6

§
Status.IMUsed = 226
[src]

RFC 3229, 10.4.1

§
Status.InsufficientStorage = 507
[src]

RFC 4918, 11.5

§
Status.InternalServerError = 500
[src]

RFC 7231, 6.6.1

§
Status.LengthRequired = 411
[src]

RFC 7231, 6.5.10

§
Status.Locked = 423
[src]

RFC 4918, 11.3

§
Status.LoopDetected = 508
[src]

RFC 5842, 7.2

§
Status.MethodNotAllowed = 405
[src]

RFC 7231, 6.5.5

§
Status.MisdirectedRequest = 421
[src]

RFC 7540, 9.1.2

§
Status.MovedPermanently = 301
[src]

RFC 7231, 6.4.2

§
Status.MultipleChoices = 300
[src]

RFC 7231, 6.4.1

§
Status.MultiStatus = 207
[src]

RFC 4918, 11.1

§
Status.NetworkAuthenticationRequired = 511
[src]

RFC 6585, 6

§
Status.NoContent = 204
[src]

RFC 7231, 6.3.5

§
Status.NonAuthoritativeInfo = 203
[src]

RFC 7231, 6.3.4

§
Status.NotAcceptable = 406
[src]

RFC 7231, 6.5.6

§
Status.NotExtended = 510
[src]

RFC 2774, 7

§
Status.NotFound = 404
[src]

RFC 7231, 6.5.4

§
Status.NotImplemented = 501
[src]

RFC 7231, 6.6.2

§
Status.NotModified = 304
[src]

RFC 7232, 4.1

§
Status.OK = 200
[src]

RFC 7231, 6.3.1

§
Status.PartialContent = 206
[src]

RFC 7233, 4.1

§
Status.PaymentRequired = 402
[src]

RFC 7231, 6.5.2

§
Status.PermanentRedirect = 308
[src]

RFC 7538, 3

§
Status.PreconditionFailed = 412
[src]

RFC 7232, 4.2

§
Status.PreconditionRequired = 428
[src]

RFC 6585, 3

§
Status.Processing = 102
[src]

RFC 2518, 10.1

§
Status.ProxyAuthRequired = 407
[src]

RFC 7235, 3.2

§
Status.RequestedRangeNotSatisfiable = 416
[src]

RFC 7233, 4.4

§
Status.RequestEntityTooLarge = 413
[src]

RFC 7231, 6.5.11

§
Status.RequestHeaderFieldsTooLarge = 431
[src]

RFC 6585, 5

§
Status.RequestTimeout = 408
[src]

RFC 7231, 6.5.7

§
Status.RequestURITooLong = 414
[src]

RFC 7231, 6.5.12

§
Status.ResetContent = 205
[src]

RFC 7231, 6.3.6

§
Status.SeeOther = 303
[src]

RFC 7231, 6.4.4

§
Status.ServiceUnavailable = 503
[src]

RFC 7231, 6.6.4

§
Status.SwitchingProtocols = 101
[src]

RFC 7231, 6.2.2

§
Status.Teapot = 418
[src]

RFC 7168, 2.3.3

§
Status.TemporaryRedirect = 307
[src]

RFC 7231, 6.4.7

§
Status.TooEarly = 425
[src]

RFC 8470, 5.2

§
Status.TooManyRequests = 429
[src]

RFC 6585, 4

§
Status.Unauthorized = 401
[src]

RFC 7235, 3.1

§
Status.UnavailableForLegalReasons = 451
[src]

RFC 7725, 3

§
Status.UnprocessableEntity = 422
[src]

RFC 4918, 11.2

§
Status.UnsupportedMediaType = 415
[src]

RFC 7231, 6.5.13

§
Status.UpgradeRequired = 426
[src]

RFC 7231, 6.5.15

§
Status.UseProxy = 305
[src]

RFC 7231, 6.4.5

§
Status.VariantAlsoNegotiates = 506
[src]

RFC 2295, 8.1