How to return a status code other than 200 via Aggregation process? #1997
-
Hi, Our UI-client will make decision based on returned API status code. I have looked into custom Currently i looking at replacing |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hello, @ggoyal-Axum !
Based on current implementation if downstream failed then the response will not be included in final aggregated data. To customize route behavior for aggregated routes you need to develop custom |
Beta Was this translation helpful? Give feedback.
-
For all routes you need to develop custom Delegating Handler in which you override status code. |
Beta Was this translation helpful? Give feedback.
-
I don't see your code ❗For
|
Beta Was this translation helpful? Give feedback.
I don't see your code ❗
For
Ocelot
package user, there is no better solution except:IDefinedAggregator
and Delegating HandlerFor C# developer, there is better solution