fn classify_availability_error(err: Error) -> ApiErrorExpand description
Classify an anyhow::Error from an availability handler into the appropriate ApiError
variant. Errors produced via AvailabilityError in the state implementation carry semantic
meaning; everything else falls back to a 500 Internal Server Error.