Modified raised exception in http.airos backend and some code cleaning