Return proper status codes for cancel