RLI Corp reported earnings of 0.57 cents per share, beating an analyst consensus compiled by Marketwatch of 0.51 cents per share. The result was driven by improvements in underwriting, investment returns and favourable development in prior years' losses.