The missing error code reference for Safaricom's Daraja M-Pesa API.
Live site: ronnyabuto.github.io/daraja-error-codes
Search by error code, message, or symptom. Covers STK Push, C2B, B2C, HTTP, and Go-Live errors — each with exact causes and copy-paste fixes.
- Fork this repo
- Open errors.js
- Add a new object to the ERRORS array following the exact schema in the existing entries
- Open a pull request with the title "Add error: [code]"
Required fields: code, title, api, category, description, causes (array), fix Optional fields: notes
Valid values for api: "STK Push", "C2B", "B2C", "B2B", "HTTP", "Go-Live" Valid values for category: "callback", "request", "auth", "onboarding"
Open index.html in a browser. No server required.
Push to GitHub. Enable GitHub Pages on the main branch root. Done.