# ValueError: 99 is not a valid HTTP status code

- **ID:** `python/starlette-http-exception-invalid-status`
- **Domain:** python
- **Category:** type_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

Passing an invalid status code to HTTPException or Response.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.x | active | — | — |

## Workarounds

1. **** (100% success)
   ```
   Use a valid status code: raise HTTPException(status_code=404, detail='Not Found')
   ```
2. **** (90% success)
   ```
   Check the status code before using: if 100 <= code <= 599: use it else: raise ValueError
   ```

## Dead Ends

- **** — Status codes must be integers between 100 and 599. (90% fail)
- **** — 600 is not a standard HTTP status code. (80% fail)
