I've seen many links of how to GET a response code, but is there a way, within the webscript of the Google Sheet, to SET a response code if a condition fails? e.g.
if(webscriptSharedToken != AUTH_TOKEN) {
return setStatusCode(401);
}
The idea would be to use this returned error code to prevent certain functions within the application I'm creating.