Reference
HTTP Status Codes
| Status | Meaning in SamaySetu | Typical Scenario |
|---|---|---|
200 OK | Request succeeded | Standard JSON response, status message, or binary PDF/XLSX export |
201 Created | Resource created | Draft timetable entry (POST /api/timetable/entries) or lab session/group creation |
204 No Content | Deletion succeeded with empty body | Batch deletion (DELETE /admin/api/batches/{id}) |
400 Bad Request | Request validation or business rule failure | Invalid @mitaoe.ac.in registration domain, weak password, invalid role, or failed login status |
401 Unauthorized | Authentication missing or expired | Absent Authorization: Bearer header or expired/invalid JWT token |
403 Forbidden | Insufficient authorization | Caller lacks required permission key or targets another department outside scope |
404 Not Found | Resource missing | Non-existent academicYear, department, division, batch, course, room, timeSlot, teacher, or entry ID |
409 Conflict | State conflict or duplicate entry | Teacher/room/division scheduling clash, pre-publish error, or duplicate short code |
429 Too Many Requests | Rate limit exceeded | Per-IP tier quota exhausted within the 60-second window |
500 Internal Server Error | Unhandled server error | Unexpected backend failure or PDF/Excel export rendering failure |
503 Service Unavailable | Maintenance Mode active | Institutional maintenance lockout active for callers without bypass access |
