Handle non-200 status codes and improve test coverage.