Updated response code from 1 to 4 where required.