0

I have the following code:

 entityResource.save(formData,
    function (result) {
        ....
    }, function (result) {
        ...
    });

If the function save fails and returns http://abc.com/api/Content 400 (Bad Request) then this is valid as I display a message.

Is there a way I can stop this showing as a failure in the console of Chrome?

Samantha J T Star
  • 30,952
  • 84
  • 245
  • 427

1 Answers1

1

May be you can response the http code :200, then reponse content like json: {error_code: 400, error_msg: "business error"}

Philip
  • 71
  • 1
  • 4