==Raise Errors==
{{Mark|Updated with BaseX 9.5:}} Status code {{Code|400}} changed to {{Code|500}}.
If an error is raised during the evaluation of a RESTXQ function, an HTTP response with the status code 500 is generated. The response body contains the full error message and stack trace unless {{Option|RESTXQERRORS}} is disabled.