Skip to content

Error Codes

If there is something wrong, an error will be returned. Depending on the language parameter provided in the request, the error will be delivered in English or Swedish.

Language Support

Error messages are returned in the language specified by the language parameter in your request (either en for English or sv for Swedish).


Error Response Format

All error responses include metaData and error only. Null fields are omitted from the JSON response. The detail field within error is optional and may be omitted when no additional context is available.

Example response (404 NotFound):

{
  "metaData": {
    "apiLogId": 547631,
    "timeStamp": "2026-07-21T09:12:41",
    "resource": "Company Search (1225)",
    "method": "GET",
    "requestUrl": "https://se-webservice.apps.creditsafe.com/search/company?namesearchnumber=test"
  },
  "error": {
    "code": "15",
    "text": "No match record"
  }
}

HTTP 400 - Bad Request

CodeTextDetail
R1The language must be either en (default) or sv (swedish)Invalid language parameter
195Sidstorleken utanför giltigt områdePage size out of valid range (e.g., 100>50)
196Startpositionen utanför giltigt områdeStart position out of valid range (<=0 or >100)
201Sökmotorn kunde inte processa händelsenSearch engine processing error

HTTP 403 - Forbidden

Authentication and Authorization Errors

CodeTextDetail
R2Token får inte saknas eller vara tomToken is missing or empty
R3Sluttiden för token är ogiltigToken expiration time is invalid
R4Token har gått utToken has expired
R5Token är ogiltigToken is invalid
R6Ogiltig token-utgivareInvalid token issuer

Access and Quota Errors

CodeTextDetail
7Ej tillgång till tjänstenNo access to service (account or user level)
8Rapporter/poäng slutNo remaining reports for account or user

HTTP 404 - Not Found

CodeTextDetail
15Ingen träffNo results found (search returned no matches)

Common Error Resolution Steps

  1. Authentication Errors (R2-R6)
  2. Verify token validity and expiry
  3. Request a new token from Authenticate when needed
  4. Input Validation Errors (400)
  5. Verify language, pagination values, and search criteria
  6. Access and Quota Errors (7, 8)
  7. Confirm service access and available report balance for account/user

HTTP 504 - Gateway Timeout

If a search request takes more than 30 seconds, a 504 Gateway Timeout response will be returned.

Server Timeout

A 504 Gateway Timeout is most likely a server environment issue at Creditsafe. Please report this kind of issue to Creditsafe support at integration@creditsafe.se including details on the search that timed out (search criteria, timestamp, and search type).