gossamer/http_status

Types

An HTTP response status code.

Common codes from RFC 9110 are named explicitly. Uncommon or non-standard codes use Other(Int).

pub type HttpStatus {
  Continue
  SwitchingProtocols
  Ok
  Created
  Accepted
  NoContent
  PartialContent
  MovedPermanently
  Found
  SeeOther
  NotModified
  TemporaryRedirect
  PermanentRedirect
  BadRequest
  Unauthorized
  Forbidden
  NotFound
  MethodNotAllowed
  Conflict
  Gone
  PayloadTooLarge
  UnsupportedMediaType
  ImATeapot
  UnprocessableContent
  TooManyRequests
  InternalServerError
  NotImplemented
  BadGateway
  ServiceUnavailable
  GatewayTimeout
  Other(Int)
}

Constructors

  • Continue

    100

  • SwitchingProtocols

    101

  • Ok

    200

  • Created

    201

  • Accepted

    202

  • NoContent

    204

  • PartialContent

    206

  • MovedPermanently

    301

  • Found

    302

  • SeeOther

    303

  • NotModified

    304

  • TemporaryRedirect

    307

  • PermanentRedirect

    308

  • BadRequest

    400

  • Unauthorized

    401

  • Forbidden

    403

  • NotFound

    404

  • MethodNotAllowed

    405

  • Conflict

    409

  • Gone

    410

  • PayloadTooLarge

    413

  • UnsupportedMediaType

    415

  • ImATeapot

    418

  • UnprocessableContent

    422

  • TooManyRequests

    429

  • InternalServerError

    500

  • NotImplemented

    501

  • BadGateway

    502

  • ServiceUnavailable

    503

  • GatewayTimeout

    504

  • Other(Int)
Search Document