/**
 * Base error class for typed HTTP service errors.
 * All specific error types extend this class.
 */
export class ServiceError extends Error {
  constructor(
    public statusCode: number,
    message: string,
    public details?: Record<string, unknown>
  ) {
    super(message);
    this.name = 'ServiceError';
  }
}
