Check http codes rather than JSON response