from fastapi import HTTPException
try:
access_token = None
if not access_token:
print('not access token')
raise HTTPException(status_code=400, detail='missing header access-token')
except HTTPException as http_ex:
print('http ex:', str(http_ex))
raise http_ex