cloudfoundry-community/cf-java-component — pull request #5 by tdemande (2014-09-11 12:58:22+00:00)
Title: (improve) Add capacity to chose the return code for Provision and Binding responses

CF API ( http://docs.cloudfoundry.org/services/api.html) wants the service broker to return 201 in case of successful creation of provisioning or binding. Service broker might also want to return 200 (instead of 409) if the same request is made again.
Currently ServiceBrokerHandler will only return 200, this PR adds the return code to the Response object, and uses it for setting the response code accordingly, so that the default success code is 201 as expected, but can be changed if needed/wanted.