diff --git a/js/server/modules/@arangodb/foxx/router/swagger-context.js b/js/server/modules/@arangodb/foxx/router/swagger-context.js index e58c633509..c54ffeaf0c 100644 --- a/js/server/modules/@arangodb/foxx/router/swagger-context.js +++ b/js/server/modules/@arangodb/foxx/router/swagger-context.js @@ -119,6 +119,10 @@ module.exports = exports = class SwaggerContext { statusCode = 200; } if (type === null) { + if (statusCode === 200) { + this._responses.remove(200); + statusCode = 204; + } this._responses.set(statusCode, {}); } else { let contentType = 'application/json; charset=utf-8';