Error Rate Analytics

Is the 5xx error rate showing the errors caused by the origin only, or errors seen by the users that were caused by cloudflare, like 503s?