Docs / Errors

INVALID_MASJID_ID

400Invalid masjid id

Why it happens

The id in the path is not a masjid id. Masjid ids start with msj_; anything else (an old numeric id, a name, coordinates) is refused before any lookup.

What to do

  • Take the id from a search, nearby or retrieve answer: the id member, as it is.
  • Encode the id in the path as it is, without adding anything.

Example response

http
HTTP/1.1 400
{
  "type": "https://hub.masjidbox.com/docs/errors/INVALID_MASJID_ID",
  "title": "Invalid masjid id",
  "status": 400,
  "detail": "The id is not a masjid id (`msj_…`).",
  "instance": "/v1/masjids/msj_abc123defg",
  "code": "INVALID_MASJID_ID",
  "requestId": "req_8f14e45fceea167a5a36dedd4bea2543",
  "requestLogUrl": "https://hub.masjidbox.com/console/logs/req_8f14e45fceea167a5a36dedd4bea2543"
}