adds error output for failing requests