Statistics route API can return an error message now.