aboutsummaryrefslogtreecommitdiffstats
path: root/code/api/src/Endpoints/EndpointBase.cs
diff options
context:
space:
mode:
Diffstat (limited to 'code/api/src/Endpoints/EndpointBase.cs')
-rw-r--r--code/api/src/Endpoints/EndpointBase.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/code/api/src/Endpoints/EndpointBase.cs b/code/api/src/Endpoints/EndpointBase.cs
index 6850755..8b9bbf0 100644
--- a/code/api/src/Endpoints/EndpointBase.cs
+++ b/code/api/src/Endpoints/EndpointBase.cs
@@ -14,7 +14,8 @@ public class EndpointBase : ControllerBase
};
[NonAction]
- protected ActionResult KnownProblem(string title = default, string subtitle = default, Dictionary<string, string> errors = default) {
+ 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,
@@ -25,6 +26,7 @@ public class EndpointBase : ControllerBase
[NonAction]
protected ActionResult KnownProblem(KnownProblemModel problem) {
+ HttpContext.Response.Headers.Add(AppHeaders.IS_KNOWN_PROBLEM, "1");
return BadRequest(problem);
}