diff options
Diffstat (limited to 'code/api/Endpoints/EndpointBase.cs')
| -rw-r--r-- | code/api/Endpoints/EndpointBase.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/code/api/Endpoints/EndpointBase.cs b/code/api/Endpoints/EndpointBase.cs index a16f40f..320ce8d 100644 --- a/code/api/Endpoints/EndpointBase.cs +++ b/code/api/Endpoints/EndpointBase.cs @@ -8,6 +8,7 @@ public class EndpointBase : ControllerBase [NonAction] protected ActionResult KnownProblem(string title = default, string subtitle = default, Dictionary<string, string[]> errors = default) { + HttpContext.Response.Headers.Add(AppHeaders.IS_KNOWN_PROBLEM, "1"); return BadRequest(new KnownProblemModel { Title = title, Subtitle = subtitle, @@ -18,6 +19,7 @@ public class EndpointBase : ControllerBase [NonAction] protected ActionResult KnownProblem(KnownProblemModel problem) { + HttpContext.Response.Headers.Add(AppHeaders.IS_KNOWN_PROBLEM, "1"); problem.TraceId = HttpContext.TraceIdentifier; return BadRequest(problem); } |
