adding option for expected http return code