A test failed expecting 200, but received -1, which is an err rc, not an HTTP status code, so move these checks up. Also log the output an not just check for a nil err. Signed-off-by: Christy Perez <christy@linux.vnet.ibm.com> Upstream-commit: 3dea5dbb9acb2699569c5aaf3737d58793152b3c Component: engine