simple function-based views for errors may be more reliable