Does anybody know how to suppress errors from being shown in browser console when executing dojo/request.
For example, I make a post request to backend which returns HTTP 400 telling me that an error has occurred because of validation check.
I will handle it appropriately in my code, show some validation warnings but still dojo/request logs the error into console:
This example is on HTTP500, but it's the same in HTTP400.
This is a code snippet
var results = request.post("/webapp/target/save", {
data: dojo.toJson(this._dataObject),
headers: this.headers,
handleAs: "json"
});
There has to be a way to hide this on production code :)
Thank you