UNPKG

airship-server

Version:

Airship is a framework for Node.JS & TypeScript that helps you to write big, scalable and maintainable API servers.

14 lines (13 loc) 405 B
import { ASResponse } from "./ASResponse"; import { ISerializable } from "../../../serialize/BaseSerializer"; export default class ASErrorResponse extends ASResponse implements ISerializable { private _ok; private _error; private _errorCode; constructor(error: string, errorCode?: number); serialize(): { ok: boolean; error: string; errorCode: number; }; }