Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Response standard

Current

{
  "errors": {
    "user": {
      "starting_stage_id": [
        "Invalid"
      ],
      "checklist_id": [
        "can't be blank"
      ]
    }
  }
}

from email

{
  "errorCode": "ERROR-001 OR Server Error OR Application Error ....",
  "errorMessage": "Successful. Or, Your email is not valid. Or server is maintenancing. Or a specific message....",
  "data": {}
}

suggest from me

success

{
    "success": true,
    "user": {
        "id": 1426958891,
        "name": "Tan"
    }
  }
}

error

{
    "success": false,
    "message": "Wrong id or password",
    "status": "internal_server_error",
    "error_code": 603
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.