Skip to content

Handling errors and UseExceptionHandler #2082

Answered by Tratcher
iant-ee asked this question in Q&A
Discussion options

You must be logged in to vote

YARP does not throw exceptions for issues with external entities, it sets a 5xx response and adds additional info to the HttpContext. You can inspect that info to generate a custom response. See: https://microsoft.github.io/reverse-proxy/articles/middleware.html#error-handling

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Tratcher
Comment options

@iant-ee
Comment options

@Tratcher
Comment options

Answer selected by iant-ee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants