def dehydrate(self, model, fields=None, exclude=None, relationship_prefix=None):

		data = super(URIMixin, self).dehydrate(model, fields, exclude, relationship_prefix)

		try:
			data[self.uri_attribute_name] = self.get_model_resource_url(model, relationship=relationship_prefix)
		except ImproperlyConfigured:
			#we only pass this exception up if this is the root model.
			if relationship_prefix is None:
				raise

		return data
HTTP 400 should return if data is invalid.
dataset/ETHPy150Open jarcoal/django-sliver/sliver/mixins.py/URIMixin.dehydrate--crossover with--dataset/ETHPy150Open rapidsms/rapidsms/rapidsms/backends/vumi/tests.py/VumiViewTest.test_invalid_response