400 on duplicate key errors