http thread: support "bad request" response