bad http request exception handle