Concept Flow - HTTPException usage
Request received
Check condition
Raise HTTPException
Client receives response
When a request comes in, the code checks a condition. If the condition is true, it raises an HTTPException to send an error response. Otherwise, it returns a normal response.