The render method needs to be last, otherwise the error header won't get set. Needs...