==Raise Errors==
{{Mark|Updated with BaseX 9.5:}} Status code {{Code|400}} changed to {{Code|500}}, omit stack trace.
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.
=Changelog=
;Version 9.35* Updated: [[#Raise Errors|Raise Errors]]: Status code {{Code|400}} changed to {{Code|500}}, omit stack trace.
;Version 9.3