Change type for response code so that it's not unsigned - preserves negative error codes