I’m not familiar with AJAX so i’m not sure how it handles a bad request, but when I view it on my end without a valid Client ID then I see the expected error messaging.
{“error”:“Bad Request”,“status”:400,“message”:“No client id specified”}
You may need to include proper error handling to see this messaging - a quick google provided the below example:
function handleAjaxError(jqXHR, textStatus, errorThrown) {
if (jqXHR.status == 500) {
// Server side error
} else if (jqXHR.status == 404) {
// Not found
} else if (jqXHR.status == 400) {
//Bad request
}
}
$.ajax({
CODE HERE
success: function() { … },
error: handleAjaxError
});