Adds response codes to objects.