Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Msg Bus pipeline.onFail() #112

Open
pchainho opened this issue Aug 29, 2016 · 0 comments
Open

Msg Bus pipeline.onFail() #112

pchainho opened this issue Aug 29, 2016 · 0 comments
Assignees

Comments

@pchainho
Copy link
Contributor

Currently msg bus pipeline onFail() handler is receiving a string describing the reason of the failure from the handlers, notably from the Policy Engine eg see here.

However, these failures should result on responding with an Error Response Message to the message source that caused the failure.

Thus, the promise.reject from Msg Bus Handlers should return a well formatted Response Message with the most appropriate response code and associated description eg "403" , "Blocked by Policy". Then, the default msg bus Fail handler will post the message in the bus.

In case, the promise.reject from Msg Bus Handlers does not return a well formatted Response Message a default response message with code "403" and description "reject" is responded.

These failures should can be looged with warnings but not with erros

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants