made recommended changes for new response codes