API v2 returns 200 when envvar not found. Used to return 404

$ curl -sS -w '\nresponse_code==%{http_code}\n'https://circleci.com/api/v1.1/project/github/:user/:project/envvar/not_exist?circle-token=:token
{
  "message" : "env var not found"
}
response_code==404

$ curl -sS -w '\nresponse_code==%{http_code}\n'https://circleci.com/api/v2/project/github/:user/:project/envvar/not_exist?circle-token=:token
{
  "message" : "Environment variable not found."
}
response_code==200

Hi,

Thank you for reporting this, this was indeed a regression which we (should) have fixed now. Please reach out if you encounter other issues, these can sometimes be hard to catch on our end.

Happy building,

Robin