File

src/core/domain/interfaces/http-response.interface.ts

Description

Basic HTTP response interface

Index

Properties

Properties

data
data: any
Type : any

Represents the actual data which is returned by the API. In case of empty response we will have it empty also.

description
description: string
Type : string

Represents a full description about the response (https://developer.mozilla.org/en-US/docs/Web/HTTP/Status)

message
message: string
Type : string

Represents a short message about the response status.

status
status: number
Type : number

Represents the status code of the http response(https://en.wikipedia.org/wiki/List_of_HTTP_status_codes).

type
type: string
Type : string

Represents the type of the response

export interface HttpResponse {
  /**
   * Represents the type of the response
   */
  type: string;
  /**
   * Represents the status code of the http response(https://en.wikipedia.org/wiki/List_of_HTTP_status_codes).
   */
  status: number;
  /**
   * Represents a short message about the response status.
   */
  message: string;
  /**
   * Represents a full description about the response (https://developer.mozilla.org/en-US/docs/Web/HTTP/Status)
   */
  description: string;
  /**
   * Represents the actual data which is returned by the API. In case of empty response we will have it empty also.
   */
  data: any;
}

results matching ""

    No results matching ""