set_404(); $template_path = get_404_template(); if ( file_exists( $template_path ) ) { require_once( $template_path ); } die(); } /** * Ends the request with a 401 (Unauthorized) HTTP status code. */ private static function die_401() { status_header( 401 ); die(); } }