flipkart-incubator / flux

Highly scalable Event-driven, Reactive system for building Stateful apps and Workflow services.
Apache License 2.0
107 stars 43 forks source link

Modified response code for ConstraintViolation #84

Closed akifkhan01 closed 5 years ago

akifkhan01 commented 5 years ago

In case of constraint violation, changed response code to 500 (INTERNAL_SERVER_ERROR) if it is not for duplicate State Machine Id. For duplciate state machine id, it sends 409 (CONFLICT) as response.

All tests passing.

akifkhan01 commented 5 years ago

This PR is to address issue occurred here : https://jira.fkinternal.com/browse/FLUXONCALL-47