Options
All
  • Public
  • Public/Protected
  • All
Menu

HTTP status codes and associated reason phrases as returned by Postman Echo

Hierarchy

Index

Constructors

constructor

Public Methods

getDataset

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

getReasonPhrases

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

getRecordForReasonPhrase

getRecords

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

getReferenceForReasonPhrase

getReferences

  • getReferences(statusCode: number): Reference[]

getStatusCodes

  • getStatusCodes(): number[]

hasAlternatives

  • hasAlternatives(statusCode: number): boolean

Protected Methods

Protected addRecord

  • addRecord(statusCode: number, record: Record): this

Protected deleteRecord

  • deleteRecord(statusCode: number, reasonPhrase: ReasonPhrase): this

Protected deleteStatusCode

  • deleteStatusCode(statusCode: number): this

Protected replaceReasonPhrase

Protected replaceRecord

Protected replaceReference

Legend

  • Class
  • Constructor
  • Type alias
  • Inherited method

Generated using TypeDoc