aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'server/helpers')
-rw-r--r--server/helpers/express-utils.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/helpers/express-utils.ts b/server/helpers/express-utils.ts
index e3ff93cdd..bca59a83c 100644
--- a/server/helpers/express-utils.ts
+++ b/server/helpers/express-utils.ts
@@ -131,8 +131,8 @@ const apiResponseHelpers = (req, res: express.Response, next = null) => {
131 res.fail = (options) => { 131 res.fail = (options) => {
132 const { data, status, message, title, type, docs, instance } = { 132 const { data, status, message, title, type, docs, instance } = {
133 data: null, 133 data: null,
134 status: HttpStatusCode.BAD_REQUEST_400, 134 ...options,
135 ...options 135 status: options.status || HttpStatusCode.BAD_REQUEST_400
136 } 136 }
137 137
138 const extension = new ProblemDocumentExtension({ 138 const extension = new ProblemDocumentExtension({