Skip to content

Commit

Permalink
[Bug] changed path for error handling for apis
Browse files Browse the repository at this point in the history
Signed-off-by: sumukhswamy <[email protected]>
  • Loading branch information
sumukhswamy committed Oct 21, 2024
1 parent d01d2ff commit 8d4328e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/routes/dsl_route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export function registerDslRoute(router: IRouter, openSearchServiceSetup: OpenS
);
if (error.statusCode !== 404) console.error(error);
return response.custom({
statusCode: error.statusCode || 500,
statusCode: error.statusCode || 400,
body: error.message,
});
}
Expand Down

0 comments on commit 8d4328e

Please sign in to comment.