Hi,
By default ocelot will return 200 even if any of the down streams returns 404, 401 etc during aggregation process. Is there a way to customize that behaviour?
Our UI-client will make decision based on returned API status code.
for example, if the status code is 401 then show a unauthorize screen
or if the status code is 400 then may be a different screen to show the issue and so on.
I have looked into custom DefinedAggregator to achieve this for a specific route but I want the ability to change the default behaviour for all the routes.
Currently i looking at replacing SimpleJsonResponseAggregator with custom but would like to know if there is any better solution
Hi,
By default ocelot will return 200 even if any of the down streams returns 404, 401 etc during aggregation process. Is there a way to customize that behaviour?
Our UI-client will make decision based on returned API status code.
for example, if the status code is 401 then show a unauthorize screen
or if the status code is 400 then may be a different screen to show the issue and so on.
I have looked into custom DefinedAggregator to achieve this for a specific route but I want the ability to change the default behaviour for all the routes.
Currently i looking at replacing SimpleJsonResponseAggregator with custom but would like to know if there is any better solution