Extract a common render error method in controller