- The API currently returns None or a dictionary with an "error" key when a rate limit is hit or a file type is invalid, while still returning a 200 OK status.
Task: Use FastAPI's HTTPException to return proper 400 Bad Request or 429 Too Many Requests status codes.
Task: Use FastAPI's HTTPException to return proper 400 Bad Request or 429 Too Many Requests status codes.