Does handle_ajax have a mechanism to pass errors to the browser? If so, maybe we should use it here and in the other return with error locations in this function.