class ValidationError extends Error { code: Number response: any constructor(e: string) { super(e); this.name = "VALIDATION_ERROR"; this.code = 400; this.response = e; } } class Unauthorised extends Error { code: Number response: any constructor(e: string) { super(e); this.name = "UNAUTHORISED"; this.code = 401; this.response = e; } } export default { ValidationError, Unauthorised };