UNPKG

@microsoft/teams.api

Version:

<p> <a href="https://www.npmjs.com/package/@microsoft/teams.api" target="_blank"> <img src="https://img.shields.io/npm/v/@microsoft/teams.api/latest" /> </a> <a href="https://www.npmjs.com/package/@microsoft/teams.api?activeTab=code" t

42 lines (40 loc) • 663 B
/** * Object representing error information */ type HttpError = { /** * Error code */ code: string; /** * Error message */ message: string; /** * Error from inner http call */ innerHttpError: InnerHttpError; }; /** * Object representing inner http error */ type InnerHttpError = { /** * HttpStatusCode from failed request */ statusCode: number; /** * Body from failed request */ body: any; }; /** * An HTTP API response */ type ErrorResponse = { /** * Error message */ error: HttpError; }; export type { ErrorResponse, HttpError, InnerHttpError };