0

I am developing a set of SOA services where the backends (mainly stored procedures in the DB) sometimes return only status code as response (ex: an operation to cancel a ticket, the SP for this operation returns status = 000 in case of success , otherwise failure), now my question is : Design wise, Is it correct to propagate the same behavior to the frontend (I have already have a status field in every service which tells the status of the call, so I can use it) , or is it better to define a boolean for example to tell if the booking was cancelled or not.

My main concern is that If I use the status field, the technical errors (like connectivity and authenticity and so on) will be mixed with business errors (like failure to cancel booking due to time constraint for example) ... both will be represented in the same field "status"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.