Options
All
  • Public
  • Public/Protected
  • All
Menu

IANA HTTP Status Codes, Descriptions and References.

Source for this dataset is the IANA Hypertext Transfer Protocol (HTTP) Status Code Registry

Data is downloaded from https://www.iana.org/assignments/http-status-codes/http-status-codes-1.csv, then converted to JSON using shell and gawk script provided in the http-status-codes package.

Hierarchy

Index

Public Methods

getDataset

  • Get a copy of the entire status code dataset.

    Returns Dataset

getReasonPhrase

  • Get the reason phrase for the specified status code.

    When a status code has multiple records, returns the first reason phrase.

    Parameters

    • statusCode: number

    Returns ReasonPhrase

getRecord

  • getRecord(statusCode: number): Record
  • Get a copy of the record for the specified status code.

    When a status code has multiple records, returns the first record.

    Parameters

    • statusCode: number

    Returns Record

getReference

  • getReference(statusCode: number): Reference
  • Get the reference for the specified status code.

    When a status code has multiple records, returns the first reference.

    Parameters

    • statusCode: number

    Returns Reference

getStatusCodes

  • getStatusCodes(): number[]
  • Get a list of all status codes in the dataset.

    Returns number[]

Legend

  • Class
  • Method
  • Type alias

Generated using TypeDoc