Replies: 1 comment 6 replies
-
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
as we can see in the below code that if we give the custom error that " data not found " and if it is production env it will throw error "InternalServerError" but in dev env it is working fine is there any specific reason that for prod env it is changing the error forcefully itself
response .setHeaders(this.getHeaders(error)) .status(err.status) .contentType("application/json") .body(env === Env.PROD ? "InternalServerError" : err);
Beta Was this translation helpful? Give feedback.
All reactions