Skip to content

struct StatusCodes

cangjie
public struct StatusCodes

功能:提供常用 HTTP 状态码常量。

成员概览

成员功能
const Continue表示 100 Continue HTTP 状态码。
const SwitchingProtocols表示 101 Switching Protocols HTTP 状态码。
const Processing表示 102 Processing HTTP 状态码。
const EarlyHints表示 103 Early Hints HTTP 状态码。
const Ok表示 200 Ok HTTP 状态码。
const Created表示 201 Created HTTP 状态码。
const Accepted表示 202 Accepted HTTP 状态码。
const NonAuthoritativeInfo表示 203 Non Authoritative Info HTTP 状态码。
const NoContent表示 204 No Content HTTP 状态码。
const ResetContent表示 205 Reset Content HTTP 状态码。
const PartialContent表示 206 Partial Content HTTP 状态码。
const MultiStatus表示 207 Multi Status HTTP 状态码。
const AlreadyReported表示 208 Already Reported HTTP 状态码。
const ImUsed表示 226 Im Used HTTP 状态码。
const MultipleChoices表示 300 Multiple Choices HTTP 状态码。
const MovedPermanently表示 301 Moved Permanently HTTP 状态码。
const Found表示 302 Found HTTP 状态码。
const SeeOther表示 303 See Other HTTP 状态码。
const NotModified表示 304 Not Modified HTTP 状态码。
const UseProxy表示 305 Use Proxy HTTP 状态码。
const TemporaryRedirect表示 307 Temporary Redirect HTTP 状态码。
const PermanentRedirect表示 308 Permanent Redirect HTTP 状态码。
const BadRequest表示 400 Bad Request HTTP 状态码。
const Unauthorized表示 401 Unauthorized HTTP 状态码。
const PaymentRequired表示 402 Payment Required HTTP 状态码。
const Forbidden表示 403 Forbidden HTTP 状态码。
const NotFound表示 404 Not Found HTTP 状态码。
const MethodNotAllowed表示 405 Method Not Allowed HTTP 状态码。
const NotAcceptable表示 406 Not Acceptable HTTP 状态码。
const ProxyAuthRequired表示 407 Proxy Auth Required HTTP 状态码。
const RequestTimeout表示 408 Request Timeout HTTP 状态码。
const Conflict表示 409 Conflict HTTP 状态码。
const Gone表示 410 Gone HTTP 状态码。
const LengthRequired表示 411 Length Required HTTP 状态码。
const PreconditionFailed表示 412 Precondition Failed HTTP 状态码。
const RequestContentTooLarge表示 413 Request Content Too Large HTTP 状态码。
const RequestUriTooLong表示 414 Request Uri Too Long HTTP 状态码。
const UnsupportedMediaType表示 415 Unsupported Media Type HTTP 状态码。
const RequestedRangeNotSatisfiable表示 416 Requested Range Not Satisfiable HTTP 状态码。
const ExpectationFailed表示 417 Expectation Failed HTTP 状态码。
const Teapot表示 418 Teapot HTTP 状态码。
const MisdirectedRequest表示 421 Misdirected Request HTTP 状态码。
const UnprocessableEntity表示 422 Unprocessable Entity HTTP 状态码。
const Locked表示 423 Locked HTTP 状态码。
const FailedDependency表示 424 Failed Dependency HTTP 状态码。
const TooEarly表示 425 Too Early HTTP 状态码。
const UpgradeRequired表示 426 Upgrade Required HTTP 状态码。
const PreconditionRequired表示 428 Precondition Required HTTP 状态码。
const TooManyRequests表示 429 Too Many Requests HTTP 状态码。
const RequestHeaderFieldsTooLarge表示 431 Request Header Fields Too Large HTTP 状态码。
const UnavailableForLegalReasons表示 451 Unavailable For Legal Reasons HTTP 状态码。
const InternalServerError表示 500 Internal Server Error HTTP 状态码。
const NotImplemented表示 501 Not Implemented HTTP 状态码。
const BadGateway表示 502 Bad Gateway HTTP 状态码。
const ServiceUnavailable表示 503 Service Unavailable HTTP 状态码。
const GatewayTimeout表示 504 Gateway Timeout HTTP 状态码。
const HttpVersionNotSupported表示 505 Http Version Not Supported HTTP 状态码。
const VariantAlsoNegotiates表示 506 Variant Also Negotiates HTTP 状态码。
const InsufficientStorage表示 507 Insufficient Storage HTTP 状态码。
const LoopDetected表示 508 Loop Detected HTTP 状态码。
const NotExtended表示 510 Not Extended HTTP 状态码。
const NetworkAuthenticationRequired表示 511 Network Authentication Required HTTP 状态码。

const Continue

cangjie
public static const Continue: UInt16 = 100

功能:表示 100 Continue HTTP 状态码。

类型:UInt16

const SwitchingProtocols

cangjie
public static const SwitchingProtocols: UInt16 = 101

功能:表示 101 Switching Protocols HTTP 状态码。

类型:UInt16

const Processing

cangjie
public static const Processing: UInt16 = 102

功能:表示 102 Processing HTTP 状态码。

类型:UInt16

const EarlyHints

cangjie
public static const EarlyHints: UInt16 = 103

功能:表示 103 Early Hints HTTP 状态码。

类型:UInt16

const Ok

cangjie
public static const Ok: UInt16 = 200

功能:表示 200 Ok HTTP 状态码。

类型:UInt16

const Created

cangjie
public static const Created: UInt16 = 201

功能:表示 201 Created HTTP 状态码。

类型:UInt16

const Accepted

cangjie
public static const Accepted: UInt16 = 202

功能:表示 202 Accepted HTTP 状态码。

类型:UInt16

const NonAuthoritativeInfo

cangjie
public static const NonAuthoritativeInfo: UInt16 = 203

功能:表示 203 Non Authoritative Info HTTP 状态码。

类型:UInt16

const NoContent

cangjie
public static const NoContent: UInt16 = 204

功能:表示 204 No Content HTTP 状态码。

类型:UInt16

const ResetContent

cangjie
public static const ResetContent: UInt16 = 205

功能:表示 205 Reset Content HTTP 状态码。

类型:UInt16

const PartialContent

cangjie
public static const PartialContent: UInt16 = 206

功能:表示 206 Partial Content HTTP 状态码。

类型:UInt16

const MultiStatus

cangjie
public static const MultiStatus: UInt16 = 207

功能:表示 207 Multi Status HTTP 状态码。

类型:UInt16

const AlreadyReported

cangjie
public static const AlreadyReported: UInt16 = 208

功能:表示 208 Already Reported HTTP 状态码。

类型:UInt16

const ImUsed

cangjie
public static const ImUsed: UInt16 = 226

功能:表示 226 Im Used HTTP 状态码。

类型:UInt16

const MultipleChoices

cangjie
public static const MultipleChoices: UInt16 = 300

功能:表示 300 Multiple Choices HTTP 状态码。

类型:UInt16

const MovedPermanently

cangjie
public static const MovedPermanently: UInt16 = 301

功能:表示 301 Moved Permanently HTTP 状态码。

类型:UInt16

const Found

cangjie
public static const Found: UInt16 = 302

功能:表示 302 Found HTTP 状态码。

类型:UInt16

const SeeOther

cangjie
public static const SeeOther: UInt16 = 303

功能:表示 303 See Other HTTP 状态码。

类型:UInt16

const NotModified

cangjie
public static const NotModified: UInt16 = 304

功能:表示 304 Not Modified HTTP 状态码。

类型:UInt16

const UseProxy

cangjie
public static const UseProxy: UInt16 = 305

功能:表示 305 Use Proxy HTTP 状态码。

类型:UInt16

const TemporaryRedirect

cangjie
public static const TemporaryRedirect: UInt16 = 307

功能:表示 307 Temporary Redirect HTTP 状态码。

类型:UInt16

const PermanentRedirect

cangjie
public static const PermanentRedirect: UInt16 = 308

功能:表示 308 Permanent Redirect HTTP 状态码。

类型:UInt16

const BadRequest

cangjie
public static const BadRequest: UInt16 = 400

功能:表示 400 Bad Request HTTP 状态码。

类型:UInt16

const Unauthorized

cangjie
public static const Unauthorized: UInt16 = 401

功能:表示 401 Unauthorized HTTP 状态码。

类型:UInt16

const PaymentRequired

cangjie
public static const PaymentRequired: UInt16 = 402

功能:表示 402 Payment Required HTTP 状态码。

类型:UInt16

const Forbidden

cangjie
public static const Forbidden: UInt16 = 403

功能:表示 403 Forbidden HTTP 状态码。

类型:UInt16

const NotFound

cangjie
public static const NotFound: UInt16 = 404

功能:表示 404 Not Found HTTP 状态码。

类型:UInt16

const MethodNotAllowed

cangjie
public static const MethodNotAllowed: UInt16 = 405

功能:表示 405 Method Not Allowed HTTP 状态码。

类型:UInt16

const NotAcceptable

cangjie
public static const NotAcceptable: UInt16 = 406

功能:表示 406 Not Acceptable HTTP 状态码。

类型:UInt16

const ProxyAuthRequired

cangjie
public static const ProxyAuthRequired: UInt16 = 407

功能:表示 407 Proxy Auth Required HTTP 状态码。

类型:UInt16

const RequestTimeout

cangjie
public static const RequestTimeout: UInt16 = 408

功能:表示 408 Request Timeout HTTP 状态码。

类型:UInt16

const Conflict

cangjie
public static const Conflict: UInt16 = 409

功能:表示 409 Conflict HTTP 状态码。

类型:UInt16

const Gone

cangjie
public static const Gone: UInt16 = 410

功能:表示 410 Gone HTTP 状态码。

类型:UInt16

const LengthRequired

cangjie
public static const LengthRequired: UInt16 = 411

功能:表示 411 Length Required HTTP 状态码。

类型:UInt16

const PreconditionFailed

cangjie
public static const PreconditionFailed: UInt16 = 412

功能:表示 412 Precondition Failed HTTP 状态码。

类型:UInt16

const RequestContentTooLarge

cangjie
public static const RequestContentTooLarge: UInt16 = 413

功能:表示 413 Request Content Too Large HTTP 状态码。

类型:UInt16

const RequestUriTooLong

cangjie
public static const RequestUriTooLong: UInt16 = 414

功能:表示 414 Request Uri Too Long HTTP 状态码。

类型:UInt16

const UnsupportedMediaType

cangjie
public static const UnsupportedMediaType: UInt16 = 415

功能:表示 415 Unsupported Media Type HTTP 状态码。

类型:UInt16

const RequestedRangeNotSatisfiable

cangjie
public static const RequestedRangeNotSatisfiable: UInt16 = 416

功能:表示 416 Requested Range Not Satisfiable HTTP 状态码。

类型:UInt16

const ExpectationFailed

cangjie
public static const ExpectationFailed: UInt16 = 417

功能:表示 417 Expectation Failed HTTP 状态码。

类型:UInt16

const Teapot

cangjie
public static const Teapot: UInt16 = 418

功能:表示 418 Teapot HTTP 状态码。

类型:UInt16

const MisdirectedRequest

cangjie
public static const MisdirectedRequest: UInt16 = 421

功能:表示 421 Misdirected Request HTTP 状态码。

类型:UInt16

const UnprocessableEntity

cangjie
public static const UnprocessableEntity: UInt16 = 422

功能:表示 422 Unprocessable Entity HTTP 状态码。

类型:UInt16

const Locked

cangjie
public static const Locked: UInt16 = 423

功能:表示 423 Locked HTTP 状态码。

类型:UInt16

const FailedDependency

cangjie
public static const FailedDependency: UInt16 = 424

功能:表示 424 Failed Dependency HTTP 状态码。

类型:UInt16

const TooEarly

cangjie
public static const TooEarly: UInt16 = 425

功能:表示 425 Too Early HTTP 状态码。

类型:UInt16

const UpgradeRequired

cangjie
public static const UpgradeRequired: UInt16 = 426

功能:表示 426 Upgrade Required HTTP 状态码。

类型:UInt16

const PreconditionRequired

cangjie
public static const PreconditionRequired: UInt16 = 428

功能:表示 428 Precondition Required HTTP 状态码。

类型:UInt16

const TooManyRequests

cangjie
public static const TooManyRequests: UInt16 = 429

功能:表示 429 Too Many Requests HTTP 状态码。

类型:UInt16

const RequestHeaderFieldsTooLarge

cangjie
public static const RequestHeaderFieldsTooLarge: UInt16 = 431

功能:表示 431 Request Header Fields Too Large HTTP 状态码。

类型:UInt16

const UnavailableForLegalReasons

cangjie
public static const UnavailableForLegalReasons: UInt16 = 451

功能:表示 451 Unavailable For Legal Reasons HTTP 状态码。

类型:UInt16

const InternalServerError

cangjie
public static const InternalServerError: UInt16 = 500

功能:表示 500 Internal Server Error HTTP 状态码。

类型:UInt16

const NotImplemented

cangjie
public static const NotImplemented: UInt16 = 501

功能:表示 501 Not Implemented HTTP 状态码。

类型:UInt16

const BadGateway

cangjie
public static const BadGateway: UInt16 = 502

功能:表示 502 Bad Gateway HTTP 状态码。

类型:UInt16

const ServiceUnavailable

cangjie
public static const ServiceUnavailable: UInt16 = 503

功能:表示 503 Service Unavailable HTTP 状态码。

类型:UInt16

const GatewayTimeout

cangjie
public static const GatewayTimeout: UInt16 = 504

功能:表示 504 Gateway Timeout HTTP 状态码。

类型:UInt16

const HttpVersionNotSupported

cangjie
public static const HttpVersionNotSupported: UInt16 = 505

功能:表示 505 Http Version Not Supported HTTP 状态码。

类型:UInt16

const VariantAlsoNegotiates

cangjie
public static const VariantAlsoNegotiates: UInt16 = 506

功能:表示 506 Variant Also Negotiates HTTP 状态码。

类型:UInt16

const InsufficientStorage

cangjie
public static const InsufficientStorage: UInt16 = 507

功能:表示 507 Insufficient Storage HTTP 状态码。

类型:UInt16

const LoopDetected

cangjie
public static const LoopDetected: UInt16 = 508

功能:表示 508 Loop Detected HTTP 状态码。

类型:UInt16

const NotExtended

cangjie
public static const NotExtended: UInt16 = 510

功能:表示 510 Not Extended HTTP 状态码。

类型:UInt16

const NetworkAuthenticationRequired

cangjie
public static const NetworkAuthenticationRequired: UInt16 = 511

功能:表示 511 Network Authentication Required HTTP 状态码。

类型:UInt16