Removed Accept header check from Custom404Handler. Must be a better way to do this.