UNPKG

@cashfarm/tractor

Version:

A Hapi server with superpowers

31 lines (30 loc) 821 B
export declare class ApiError { /** * Original HTTP error code, should be consistent with the response HTTP code */ statusCode: number; /** * Classification of the error type, lower case with underscore eg validation_failure * @pattern [a-z]+[a-z_]*[a-z]+ */ type: string; /** * A message that can be passed on to the app user, if needed */ message: string; /** * A verbose, plain language description of the error with hints on how to fix it */ developerMessage: string; /** * Link to documentation to investigate further and finding support */ moreInfo: string; /** * More details about the error */ details: any; stack: string; constructor(err: Error, status?: number); } export default ApiError;