Header http status code

dear all
I want to set the http status code use if directive not the
error_page directive!
I want to know what header variable to get the http status code
if ($header_something ~* ‘404’) {
return 402;
}
what is the $header_something?

thanks