How to add Extra Column of post Status in All post page

The last function doesn’t work. Use this instead to fill the status column:

// Add the data to the post columns:
add_action( 'manage_post_posts_custom_column' , 'custom_post_column', 10, 2 );
function custom_post_column( $column, $post_id ) {
    if ( $column == "status" ) {
        echo get_post_status($post_id);
    }
}

error code: 523