UNPKG

@zikeji/hypixel

Version:

With IntelliSense support & test coverage, this is an unopinionated async/await API wrapper for Hypixel's Public API. It is developed in TypeScript complete with documentation, typed interfaces for all API responses, built-in rate-limit handling, flexible

10 lines (9 loc) 266 B
export class GenericHTTPError extends Error { /** The status code of the response */ public code: number; constructor(code: number, message: string) { super(message); this.code = code; Object.setPrototypeOf(this, GenericHTTPError.prototype); } }