Exams
Subject scheduled twice
A class sits the same subject on more than one date. Keep one sitting for each subject.
HTTP 422
EXAM_TIMETABLE_DUPLICATE_SUBJECTIn the response
Besides the standard members type, title, status, detail, instance, plus code and requestId:
- meta.duplicates
- The
{ classId, subjectId, dates }scheduled more than once.
Example response
HTTP 422 · application/problem+json
{
"type": "https://smartpathshaala.com/problems/exam-timetable-duplicate-subject",
"title": "Subject scheduled twice",
"status": 422,
"detail": "<what went wrong this time>",
"instance": "<the request path>",
"code": "EXAM_TIMETABLE_DUPLICATE_SUBJECT",
"requestId": "<also sent as X-Request-Id>",
"meta": {
"duplicates": "<described above>"
}
} Values in angle brackets vary per request. Quote the requestId when reporting an error; it is how the server’s log line is found.