Docs / Errors

RESOURCE_CONFLICT

409Resource conflict

Why it happens

The masjid API (/v1/masjid/*) refuses the write as the resource stands. The request is well formed, but doing it now would leave your masjid in a state the dashboard does not allow either: for instance deleting the timetable your prayer times are computed from.

What to do

  • Read the detail of the answer: it says what to change first.
  • Make that change, then send the request again.
  • Do not retry the same request unchanged: it gets the same answer.

Example response

http
HTTP/1.1 409
{
  "type": "https://hub.masjidbox.com/docs/errors/RESOURCE_CONFLICT",
  "title": "Resource conflict",
  "status": 409,
  "detail": "The write is refused as the resource stands: the detail says what to change first.",
  "instance": "/v1/masjids/msj_abc123defg",
  "code": "RESOURCE_CONFLICT",
  "requestId": "req_8f14e45fceea167a5a36dedd4bea2543",
  "requestLogUrl": "https://hub.masjidbox.com/console/logs/req_8f14e45fceea167a5a36dedd4bea2543"
}