1、导入HTTPException
2、raise HTTPException(status_code= , detail="",headers={"X-Error":"Error"})
return {"city":city}