diff --git a/JS-SDK/src/types/error.d.ts b/JS-SDK/src/types/error.d.ts new file mode 100644 index 0000000..a2a3e1b --- /dev/null +++ b/JS-SDK/src/types/error.d.ts @@ -0,0 +1,24 @@ +/** + * A response representing an error. + */ +export type RestfulMCAPIError = { + /** + * The status of this error. + */ + status: string; + + /** + * The HTTP code of this error. + */ + code: number; + + /** + * The message of this error. + */ + message: string; + + /** + * The timestamp this error occurred. + */ + timestamp: string; +}