import HttpStatus from '@xpring-eng/http-status' ; import { ParsedAcceptHeader } from '../../types/headers' ; import PayIDError from './payIdError' ; export enum LookupErrorType { MissingPayId = 'MissingPayId' , MissingAddress = 'MissingAddress' , Unknown = 'Unknown' } /**
 * A custom error class to organize logic around errors related to a 404 - Not Found.
 */ export default class LookupError extends PayIDError { public readonly kind : LookupErrorType ; public readonly headers ? : readonly ParsedAcceptHeader [ ] ; param message param kind param headers public constructor ( message , kind , headers ? ) { super ( message , HttpStatus . NotFound ) ; this . kind = kind ; this . headers = headers ; } }