AJAX calls now return 500 on error