checking for error status codes on response when no .error