check for correct status code in migrate command