move put response code into val