Added status code to the debug output.