Custom Post Type Archive Page showing as 404

While registering custom_post_type use this parameters too.

‘publicly_queryable’ => true,

Then it should be look like this.

function wporg_custom_post_type() {
register_post_type('proctor-work',
    array(
        'labels'      => array(
            'name'          => __( 'Works', 'textdomain' ),
            'singular_name' => __( 'Work', 'textdomain' ),
        ),
        'public'      => true,
        'has_archive' => true,
        'rewrite'     => array( 'slug' => 'proctor-work' ), // my custom slug
        'publicly_queryable'    => true
    )
);

}