Skip to content
Snippets Groups Projects
Commit 6f469653 authored by David Sehnal's avatar David Sehnal
Browse files

model-server: change response header for query-many exceeded limit

parent 27ee5763
Branches
No related tags found
No related merge requests found
......@@ -124,7 +124,7 @@ function createMultiJob(spec: MultipleQuerySpec, res: express.Response) {
: createResultWriter(res, spec.encoding?.toLowerCase() === 'bcif');
if (spec.queries.length > ModelServerConfig.maxQueryManyQueries) {
writer.doError(403, `query-many queries limit (${ModelServerConfig.maxQueryManyQueries}) exceeded.`);
writer.doError(400, `query-many queries limit (${ModelServerConfig.maxQueryManyQueries}) exceeded.`);
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment