Skip to content

Exams

Overlapping exam slots

A class would sit two papers whose times overlap on the same day. Move one of them.

HTTP 422EXAM_TIMETABLE_OVERLAP

In the response

Besides the standard members type, title, status, detail, instance, plus code and requestId:

meta.overlaps
The { classId, date, slots } whose time windows overlap.

Example response

HTTP 422 · application/problem+json
{
  "type": "https://smartpathshaala.com/problems/exam-timetable-overlap",
  "title": "Overlapping exam slots",
  "status": 422,
  "detail": "<what went wrong this time>",
  "instance": "<the request path>",
  "code": "EXAM_TIMETABLE_OVERLAP",
  "requestId": "<also sent as X-Request-Id>",
  "meta": {
    "overlaps": "<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.