Within an pre-user registration hook I perform checks that can result in user registration denial. In this case the hook throws an error:
const error = new Error("message'); error.statusCode = 400; return cb(error);
The testrunners returns the correct result, however, the error given back as response to the request to https://my-account.auth0.com/dbconnections/signup is still a quite meaningless 500.
Is it possible to influence the message and status code there too?