return json status code for ajax call from piper app