stj.fyi home
Search

Search stj.fyi

    All results and filters

    API error codes

    Errors come as application/problem+json (RFC 9457). Act on code; title and detail are for people and may change.

    {
      "type": "https://stj.fyi/developers/errors#not-found",
      "title": "Not found",
      "status": 404,
      "detail": "No API resource at this path. Endpoints: https://stj.fyi/developers",
      "instance": "/api/v1/places/nowhere.json",
      "code": "not-found"
    }
    invalid-parameter 400 Invalid parameter
    A query parameter is out of range or malformed (days, n, limit, cursor, target, …). detail names the allowed values. Unknown parameters are ignored, not rejected.
    invalid-body 400 Invalid body
    The rating body is not valid JSON or form data, or stars is not 1 to 5. Only from POST /ratings.
    forbidden-origin 403 Foreign origin
    Ratings are accepted from stj.fyi pages only (plus origins the operator lists). Reading needs no origin. Only from POST /ratings.
    not-found 404 Not found
    No endpoint at this path, or no record with this id (for example an unpublished place or an unknown route). Check the id against the list endpoint.
    body-too-large 413 Body too large
    A rating body is limited to 2 KB. Only from POST /ratings.
    query-too-long 414 Query too long
    The query string is over 6 KB. Ask for at most 100 targets per request. Only from GET /ratings.
    unsupported-media-type 415 Unsupported media type
    Send application/json or application/x-www-form-urlencoded. Only from POST /ratings.
    invalid-target 422 Invalid target
    The rating target is not in /api/v1/targets.json. Only from POST /ratings.
    rejected 422 Rating not saved
    The rating looked automated (a hidden form field was filled) and was not saved. Only from POST /ratings.
    too-fast 422 Rating not saved
    The rating came too soon after the page loaded. Wait a moment and retry. Only from POST /ratings.
    rate-limited 429 Too many requests
    Over 120 requests a minute on live endpoints, or over the rating limits. Wait the seconds in Retry-After; RateLimit shows what is left.
    rating-cap 429 Rating limit reached
    This network or device has rated this target as often as allowed in 30 days. Only from POST /ratings.
    target-busy 429 Target busy
    This target got unusually many new ratings in the last hour or day. Try later. Only from POST /ratings.
    unavailable 503 Unavailable
    The live cache could not be read. Never an all-clear: treat alerts, tsunami and tropical data as unknown and check the official source.
    paused 503 Ratings paused
    New ratings are paused for maintenance; see Retry-After. Reading still works. Only from POST /ratings.
    busy 503 Busy
    Too many ratings right now, or the store is slow. Retry after Retry-After seconds. Only from POST /ratings.

    Back to the API documentation