aboutsummaryrefslogtreecommitdiffstats
path: root/code/api/Endpoints/EndpointBase.cs
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2022-12-30 20:22:55 +0100
committerivarlovlie <git@ivarlovlie.no>2022-12-30 20:22:55 +0100
commit3c188c2949af9d0e08db74a850f8a87dad52de49 (patch)
tree5dba85786aa9a5a72d91328092a017f16318b8c0 /code/api/Endpoints/EndpointBase.cs
parentf5374b0b3543b0bd7d280f71ed8bf5175bad3834 (diff)
downloadstorage-3c188c2949af9d0e08db74a850f8a87dad52de49.tar.xz
storage-3c188c2949af9d0e08db74a850f8a87dad52de49.zip
feat: Yes
Diffstat (limited to 'code/api/Endpoints/EndpointBase.cs')
-rw-r--r--code/api/Endpoints/EndpointBase.cs2
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);
}