try to move these as close to where they're used. so first check if the job id exists. If so handle one way. otherwise send the error response. it's confusing that the response is initialized so