Added error code to error message for bad uploads