Remove dead code
When HTTPException are raised, treat them as a valid response
Fix missing imports
Make the secure policy make ascynchronous