Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

aa.gusti / opensipkd-base

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • opensipkd-base
  • opensipkd
  • base
  • views
  • api_messages.py
  • aa.gustiana@gmail.com's avatar
    Refactor API views and models for improved structure; add pagination support and… · aaa076ad ...
    … enhance error handling
    aa.gustiana@gmail.com committed Sep 12, 2025
    aaa076ad Browse Files
api_messages.py 447 Bytes
RawBlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
from http.client import NOT_FOUND


SUCCESS = {
    "error": {
        "code": "0000",
        "msg": "Data sudah dibayar"
    }
}

ALLREADYPAID = {
    "error": {
        "code": "0001",
        "msg": "Data sudah dibayar"
    }
}

PAYMENTMISMATCH = {
    "error": {
        "code": "0002",
        "msg": "Jumlah pembayaran tidak sesuai"
    }
}

NOT_FOUND = {
    "error": {
        "code": "404",
        "msg": "Data Tidak Ditemukan"
    }
}