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?