added apiStatus.Successful

Signed-off-by: David Stevenson <stevend@pivotallabs.com>
gateway should not check for nil response when checking for error, some code styling

Signed-off-by: David Stevenson <stevend@pivotallabs.com>