# Function extractHttpStatus

- extractHttpStatus(error: unknown): number | undefined

  Extract an HTTP status code from an error via duck typing. Works with both `APIError` (from `clients/ep/baseClient`) and any error carrying a numeric `statusCode` property (avoids circular imports).

  #### Parameters

  - error: unknown

  #### Returns number | undefined

  - Defined in tools/shared/errorClassifier.ts:30