How to catch/return error in AJAX from server side nodejs when manually throwing error inside try block? How to catch/return error in AJAX from server side nodejs when manually throwing error inside try block? mongoose mongoose