test500
Call an endpoint that always answers with a 500 error.
Description
Calls a test endpoint that always responds with a 500 error. With the default isShell: true, it resolves to an IError with statusCode: 500; with errors: { isShell: false } in the defineOneEntry config, it throws that error. See Errors.
.test500();
Examples
Minimal example
const response = await System.test500();