Menu · Operations
Operations

Errors and what to show

Every error the API can answer, with its HTTP status, whether to retry, and what to show your visitor or do in your code.

View as Markdownopenapi.json

Every error has the same shape and an HTTP status that matches it:

Field What it holds
ok Always false on an error
error.code A stable code from the table below. Branch on it, never on the message.
error.message A plain sentence for your logs. It can change.
error.retryable Whether the same request can succeed later
error.mls On errors about your boards' scope, the compliance blocks of your boards
requestId The id to quote to support; also in the x-request-id header

Every error

Code HTTP Retry What it means What to show or do
area_too_large 400 No The search area is too large. Use a smaller bbox, or a polygon with at most 200 vertices. Ask the visitor to zoom in, or send a smaller map box or a simpler drawn area.
invalid_cursor 400 No The cursor is malformed, or was issued for a different query or key. Start again without a cursor, from the first page.
invalid_parameter 400 No A parameter is missing, unknown or malformed. Fix the request; the message names the parameter. On a page, show the results without the filter the visitor typed.
location_required 400 No Search needs a location: where, near, bbox, polygon, boundariesId, zip, city, state or shape (or ownListings, agent, office, or a collection). Add a location (where, bbox, polygon, boundariesId, zip, city, state or shape) before you search.
page_depth_exceeded 400 No Paging is limited to page 40 and 50 results per page (2,000 results per query). Narrow the search. Stop paging at this point and ask the visitor to narrow the search.
secret_key_in_url 400 No Secret keys must be sent as Authorization: Bearer from your server, never in a URL. This key has been flagged; rotate it. Create a new secret key in your console under Keys and domains now, then send the new one only as Authorization: Bearer from your server.
sold_period_required 400 No Closed (sold) searches need soldPeriod (7d, 1m, 3m, 6m or 12m). Add soldPeriod to every search that asks for closed listings.
invalid_credentials 401 No The API key is not valid. Check that the key was copied in full from your console and that it is the right kind for this code.
missing_credentials 401 No Send a publishable key as ?key= or a secret key as Authorization: Bearer. Send your publishable key as ?key= from the browser, or your secret key as Authorization: Bearer from your server.
payment_required 402 No This account is paused for an unpaid invoice. Pay the invoice in your console's Billing page and the API answers again within a minute. GET /v1/account/billing shows the status. Keep serving your cached pages, and pay the open invoice from your console's Billing page. The API answers again within a minute of the payment. Do not retry in a loop.
access_revoked 403 No This API key has been revoked, has expired, or was flagged. Create a new key in your console, or email helpme@ruuster.com. Create a new key in your console under Keys and domains, then update your environment variables. If the new key is refused too, email helpme@ruuster.com.
addon_not_enabled 403 No This endpoint is part of an add-on that is not switched on for this account. Add it in your console's Billing page. Hide the feature that needs the add-on, or add the add-on in your console under Billing, Add-ons.
brokerage_not_enabled 403 No The Ruuster Listings API is not enabled for this brokerage, or no MLS is approved for it yet. Open Go live in your console to see which step your account is on. Pages can show a short notice until then.
origin_not_allowed 403 No This publishable key is not allowed on this site. Add the domain to the key's allowed origins. Add this domain under Keys and domains in your console and request MLS approval for it there, or call from a domain that is already approved.
origin_required 403 No Publishable keys work only from a browser on an allowed origin. From a server, use your secret key. A publishable key with no Origin header is refused. Call with the publishable key from a browser page, or use your secret key from your server.
secret_key_in_browser 403 No Secret keys must never be used in a browser. This key has been flagged; rotate it and use a publishable key on the page. Create a new secret key in your console under Keys and domains now, and use your publishable key on the page.
secret_key_required 403 No This endpoint needs your secret key, sent from your server as Authorization: Bearer. Call this endpoint from your server with your secret key.
agent_not_found 404 No No agent with that slug or id at this brokerage. Check the agent's slug or id; show the brokerage's own listings in the meantime.
boundary_not_found 404 No That boundary id is unknown. Search takes the ids /v1/suggest returns; /v1/boundaries/{id} answers outlines for neighborhood, county, ZIP and school boundaries from /v1/suggest and for boundary-library areas. Look the place up again with /v1/suggest and save the new id.
mls_not_in_scope 404 No This listing is not available to this key. Answer your own page with 404; this key cannot show that listing.
not_found 404 No No such resource. Answer your own page with 404 and leave it out of your sitemap.
shape_not_found 404 No No saved shape with that id for this key. /v1/shapes lists the shapes this key can use. Pick a shape from /v1/shapes. To have a shape added, email helpme@ruuster.com.
method_not_allowed 405 No This API is read-only: use GET. Send a GET request.
ambiguous_address 409 No More than one property matches that address. Be more specific: add the unit number, or look the property up by parcelNumber and postalCode. Ask the person for the unit number or the full street name, or look the property up by parcel number. Never guess between properties.
cursor_expired 410 No The cursor has expired. Start again without a cursor. Start again without a cursor (for the changes feed, resync from /v1/listings/ids).
listing_removed 410 No This listing is no longer available. Remove its page (410 Gone, noindex) and drop it from your sitemap. Answer the listing's page with 410 Gone and noindex, show similar homes, and drop the URL from your sitemap.
filter_not_supported 422 No That filter is not available through the API. Use a filter key that /v1/filters lists.
location_not_supported 422 No That kind of location can't be used here. Use a location returned by /v1/suggest, a bbox or a polygon. Use a row from /v1/suggest, a map box or a drawn area instead. On a Public Records lookup it means Ruuster has no public records in that state: hide the lookup for that property.
own_listings_unconfigured 422 No ownListings needs the brokerage's agent or office MLS ids on file. Email helpme@ruuster.com to have them set up. Email helpme@ruuster.com to have your agents' or offices' MLS ids added, then try again.
sold_not_permitted 422 No Sold listings can't be shown for the MLSs in this search. Leave closed out of the status list, or narrow the search with filterByMls to boards that show sold listings.
daily_quota_exceeded 429 Yes, after Retry-After This key's daily quota is used up. It resets at 00:00 America/Chicago. Serve cached pages until the quota resets at midnight America/Chicago. To ask for a higher limit, email helpme@ruuster.com.
rate_limited 429 Yes, after Retry-After Too many requests. Back off and retry after the Retry-After interval. Wait Retry-After seconds, then try once more. In server rendering, throw so your cache keeps serving the last good page.
internal_error 500 Yes, after Retry-After Something went wrong on our side. Try once more after Retry-After seconds; if it keeps failing, contact support with the requestId.
api_paused 503 Yes, after Retry-After The Ruuster Listings API is temporarily paused for maintenance. Keep serving your cached pages and try again after Retry-After seconds.
source_unavailable 503 Yes, after Retry-After Listing data is temporarily unavailable. Retry after the Retry-After interval. Wait Retry-After seconds, then try once more. In server rendering, throw so your cache keeps serving the last good page.

What to do, by kind

  • 400 errors mean the request is wrong. Fix it; retrying the same request gives the same answer. error.message names the parameter.
  • 402 payment_required means your account is paused for an unpaid invoice (or your plan ended). Keep serving your cached pages, and pay the open invoice from Billing in your console: the API answers again within a minute. Do not retry in a loop. GET /v1/account/billing still answers and shows the status. Billing and plans.
  • 401 and 403 errors are about keys and domains. Check that a page calling the API with no key is on a domain on your account's allowed list, and that the secret key is sent only from your server as Authorization: Bearer. Keys, domains and environment names has the details.
  • 403 addon_not_enabled means the endpoint belongs to an add-on that is not switched on for your account. Hide the feature that needs it, or add the add-on from Billing in your console. Add-ons.
  • 409 ambiguous_address comes from the Public Records lookup when more than one property matches the address. Ask for the unit number or the full street name, or look the property up by parcel number. Never pick one yourself. Public records for CMAs and listing presentations.
  • 404 and 410 on a listing are answers for your page, not failures: answer your visitor with 404 or 410 (Off-market and removed listings).
  • 422 errors mean the request is well formed but asks for something your boards or account can't answer, such as sold data on a board that doesn't show it. Change the request.
  • 429 and 503 mean wait. Wait Retry-After seconds, plus a little jitter, and try once more. In server rendering, throw, so your cache keeps serving the last good page.
  • 500 is on Ruuster's side. Retry once; if it repeats, send support the requestId.

In the SDK

The SDK never throws for an HTTP error. Every call returns { ok: false, status, error, requestId }, so you check r.ok and branch on r.error.code. A network failure returns status 0 with the code network_error. The SDK retries 429 and 503 for you when Retry-After is short.

Errors is the same table on its own page.