Make 5xx error processing a little more generic