Fixes Go lint errors and a style fix

define what "successful" means in this context (400 > code >= 200)