Interface IAddApiResponseMessageOptions

Options for adding a message to a response.

interface IAddApiResponseMessageOptions {
    code?: Nilable<number>;
    id?: Nilable<string>;
    internal?: boolean;
    message: string;
    type?: Nilable<ApiResponseMessageType>;
}

Properties

code?: Nilable<number>

A human-readble error code.

id?: Nilable<string>

The unique ID of an entry in a database, e.g.

internal?: boolean

Indicates if it an internal message or a message, which can be read be an user.

message: string

The message text.

type?: Nilable<ApiResponseMessageType>

The type. Default: 'info'

Generated using TypeDoc