I want to set the status code of a specific path to "404" GCP Load Balancer
At the moment we cannot set a custom 404 error in the GCP LB configuration, however, currently there is a Feature Request to add this functionality. As a workaround, I suggest you try to create your custom error pages (eg. apache or nginx) and set the URL redirect on your HTTP(S) Load Balancer -> Host and path rules configuration