this is how I handle error in my express app: export abstract class CustomError extends Error { abstract statusCode: number; constructor(message: string) {