export class ResponseError extends Error { private readonly res : Response | undefined ; constructor ( message , response ? ) { super ( message ) ; this . res = response ; } getResponse ( ) { return this . res ; } }