refs #124; fix for broken response-code check