export default class HttpStatusError extends Error { param status param title param message param remediation constructor ( readonly status , readonly title , message , readonly remediation ? ) { super ( message ) ; this . title = title ; this . status = status ; this . remediation = remediation ; } public getStatus ( ) { return this . status ; } }