Skip to content

mapSoapHttpError

mapSoapHttpError(status, body, retryAfterMs?): LoncaError

Defined in: sdks/n11/src/soap/errors.ts:107

Map a non-2xx SOAP response. body is the raw response text (the shared requester falls back to text when the body is not JSON).

  • a SOAP Fault whose faultcode is a client fault → ValidationError;
  • any other fault, or an unparsable body, follows the HTTP status: 401/403 → AuthError, 429 → RateLimitError, 5xx → ServerError (retried — every SOAP call the SDK makes is a read), other 4xx → ValidationError.

Fault strings go to issues, never to message.

number

unknown

number

LoncaError

Unofficial. Lonca is an independent, community-maintained project — not affiliated with, endorsed by, or supported by Trendyol, Hepsiburada, or any other marketplace. All marketplace names and trademarks belong to their respective owners.