/
githubmirror
/
angular
Обзор
Документация
Войти
/
githubmirror
/
angular
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/common/http/src/errors.ts
54 строки
2 KB
SkyZeroZx
docs: add documentation for HttpClient response body size limit and related error NG02825
30 июн 2026, 00:27
30 июн 2026, 00:27
7ea2a00
Код
Авторство
О чём код?
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /** * The list of error codes used in runtime code of the `common/http` package. * Reserved error code range: 2800-2899. */ export const enum RuntimeErrorCode { MISSING_JSONP_MODULE = -2800, NOT_USING_FETCH_BACKEND_IN_SSR = 2801, HEADERS_ALTERED_BY_TRANSFER_CACHE = -2802, HTTP_ORIGIN_MAP_USED_IN_CLIENT = 2803, HTTP_ORIGIN_MAP_CONTAINS_PATH = 2804, CANNOT_SPECIFY_BOTH_FROM_STRING_AND_FROM_OBJECT = 2805, RESPONSE_IS_NOT_AN_ARRAY_BUFFER = 2806, RESPONSE_IS_NOT_A_BLOB = 2807, RESPONSE_IS_NOT_A_STRING = 2808, UNHANDLED_OBSERVE_TYPE = 2809, /** * @deprecated 22.1 JSONP is deprecated as it can cause XSS vulnerabilities. Use standard HTTP requests instead. Intent to remove in future versions of Angular. */ JSONP_WRONG_METHOD = 2810, /** * @deprecated 22.1 JSONP is deprecated as it can cause XSS vulnerabilities. Use standard HTTP requests instead. Intent to remove in future versions of Angular. */ JSONP_WRONG_RESPONSE_TYPE = 2811, /** * @deprecated 22.1 JSONP is deprecated as it can cause XSS vulnerabilities. Use standard HTTP requests instead. Intent to remove in future versions of Angular. */ JSONP_HEADERS_NOT_SUPPORTED = 2812, KEEPALIVE_NOT_SUPPORTED_WITH_XHR = 2813, CACHE_NOT_SUPPORTED_WITH_XHR = 2814, PRIORITY_NOT_SUPPORTED_WITH_XHR = 2815, MODE_NOT_SUPPORTED_WITH_XHR = 2816, REDIRECT_NOT_SUPPORTED_WITH_XHR = 2817, CREDENTIALS_NOT_SUPPORTED_WITH_XHR = 2818, WITH_CREDENTIALS_OVERRIDES_EXPLICIT_CREDENTIALS = 2819, INTEGRITY_NOT_SUPPORTED_WITH_XHR = 2820, REFERRER_NOT_SUPPORTED_WITH_XHR = 2821, INVALID_TIMEOUT_VALUE = 2822, REFERRER_POLICY_NOT_SUPPORTED_WITH_XHR = 2823, FETCH_UPLOAD_PROGRESS_NOT_SUPPORTED = 2824, FETCH_RESPONSE_BODY_TOO_LARGE = -2825, /** * @deprecated 22.1 JSONP is deprecated as it can cause XSS vulnerabilities. Use standard HTTP requests instead. Intent to remove in future versions of Angular. */ JSONP_UNSAFE_URL = 2826, }