diff --git a/src/api/api.ts b/src/api/api.ts index d1a968b73..35165d0cd 100644 --- a/src/api/api.ts +++ b/src/api/api.ts @@ -1951,14 +1951,6 @@ export class OpenSeaAPI { return undefined } - /** - * Creates a rate limit error with status code and retry-after information. - * This is async because it attempts to parse the response body. If the body - * is malformed JSON, responseBody will be undefined (intentional — the error - * itself is more important than the body). - * @param response The HTTP response object from the API - * @returns An enhanced Error object with statusCode, retryAfter and responseBody properties - */ /** * Builds an error carrying the HTTP status. Every non-OK response goes through here or through * {@link _createRateLimitError}, so `statusCode` is present on every API error rather than only @@ -1981,6 +1973,14 @@ export class OpenSeaAPI { return error } + /** + * Creates a rate limit error with status code and retry-after information. + * This is async because it attempts to parse the response body. If the body + * is malformed JSON, responseBody will be undefined (intentional — the error + * itself is more important than the body). + * @param response The HTTP response object from the API + * @returns An enhanced Error object with statusCode, retryAfter and responseBody properties + */ private async _createRateLimitError( response: Response, ): Promise {