If I create an IDM REST Driver to expose a rest endpoint to create users or groups, I might have business logic within the driver to determine whether the request is appropriate. If I deem the request inappropriate, ideally I can respond with a HTTP 400.

It doesn't appear that I can control what the HTTP response code would be currently. I can respond with a json payload (for example, “BAD REQUEST”), but ideally the http response code would match that json payload.

It would be good to have this ability within the REST driver.

Comments