spring-cloud / spring-cloud-open-service-broker

Spring Cloud project for creating service brokers that conform to the Open Server Broker API specification
https://spring.io/projects/spring-cloud-open-service-broker
Apache License 2.0
168 stars 118 forks source link

Unable to throw 409 Conflict Https status #285

Closed harshalb007 closed 4 years ago

harshalb007 commented 4 years ago

Hello team, I am implementing the service broker using Spring.

I have provided an implementation class for ServiceInstanceBindingService. In this, according to the OSBAPI specification given here If someone provides already existing bindingId but with different attributes, we should throw 409 status. But I am unable to find a way to achieve this. Will you please help me out.

Thanks.

royclarkson commented 4 years ago

Hi, thanks for the question. You may throw a ServiceInstanceBindingExistsException for this case. Similarly, there is a ServiceInstanceExistsException for when an service instance doesn't exist. I believe this answers the question, so I'm closing the issue. If you disagree, please reopen and we'll continue the discussion.