Options
All
  • Public
  • Public/Protected
  • All
Menu
description

A DTO class that consists of a status property only and can be used to determine the correct execution of requests.

This class shall be used in HTTP responses to avoid any additional data about module states to be revealed.

since

v0.3.0

Hierarchy

Index

Constructors

Properties

Methods

Constructors

Properties

code: number

Contains the HTTP status code sent with the response object. Successful requests shall contain 200 as the status code.

access

public

var

{number}

status: boolean

Contains true given a successful request, or false otherwise.

access

public

var

{string}

Methods

  • Creates an object instance of this DTO.

    access

    public

    static

    Parameters

    • code: number

      The HTTP status code sent with the response object.

    Returns StatusDTO

    The created instance of this class, with provided code.

Generated using TypeDoc