Set hook status code