QueryFrontend does not check for the error from io.Copy, and sets incorrect status code if the error occurred.