User Tools

Site Tools


adminaddonsmaroposterrcodes

CB Split Admin - Addons > Maropost > Error Codes

Help section provides help to website admin regarding how to use veriables, assets, pages, tests, products and purchase token

Maropost api has following error codes.

Error CodeError Message
0Unknown Error Occurred
422You have previously requested that we NEVER email you again to this email address - please register with a new email address.

These error code descriptions you can change incase you need to match specific string in javascript code.

Example code to handle error response.

jQuery.ajax({
        url: "/api/maropost/add-contact/list-slug",
        method: "GET",
        data: {
          email : document.querySelector('input[type=email]').value,
        }
      }).done(function(data) {
         // success code
      }).fail(function(error) {      
        if(error.responseText.match(/Unknown/)){
          alert('Please try again');
          return false.;
        }        
});
adminaddonsmaroposterrcodes.txt ยท Last modified: 2024/10/08 16:38 by stephan