Adds debugging for response errors