handle http bad status line exception