Explicitly define status_code and remove MagicMock