Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By savio.jose1990 on
I am new to Drupal.
I have a function in which I am setting all the urls after 'node/' to point to 404 using drupal_goto('node/' . $node->nid, array(), 200)
When I load the page I get the message as the page or the content could not be found (which is correct as per the error), but when I inspect in the network tab (By right clicking -> Inspect element -> Net/Network tab) I see 403 forbidden status for the link which is unavailable. Why does it contradict ? The page shows 404 error but the network says otherwise. Can someone please explain?