angular-cn/aio/dist/generated/docs/api/common/http/HttpErrorResponse.json

5 lines
30 KiB
JSON
Raw Permalink Normal View History

{
"id": "api/common/http/HttpErrorResponse",
"title": "HttpErrorResponse",
"contents": "\n\n<article>\n <div class=\"breadcrumb-container\">\n <div class=\"breadcrumb\">\n <script type=\"application/ld+json\">\n {\n \"@context\": \"http://schema.org\",\n \"@type\": \"BreadcrumbList\",\n \"itemListElement\": [\n { \"@type\": \"ListItem\", \"position\": 1, \"item\": { \"@id\": \"https://angular.io//api\", \"name\": \"API\" } },\n { \"@type\": \"ListItem\", \"position\": 2, \"item\": { \"@id\": \"https://angular.io/api/common\", \"name\": \"@angular/common\" } },\n { \"@type\": \"ListItem\", \"position\": 3, \"item\": { \"@id\": \"https://angular.io/api/common/http\", \"name\": \"@angular/common/http\" } },\n { \"@type\": \"ListItem\", \"position\": 4, \"item\": { \"@id\": \"https://angular.io/api/common/http/HttpErrorResponse\", \"name\": \"HttpErrorResponse\" } }\n ]\n }\n </script>\n <a href=\"/api\">API</a> > <a href=\"api/common\">@angular/common</a> > <a href=\"api/common/http\">@angular/common/http</a>\n </div>\n <div class=\"github-links\">\n <a href=\"https://github.com/angular/angular/edit/master/packages/common/http/src/response.ts?message=docs(common)%3A%20describe%20your%20change...#L305-L350\" aria-label=\"Suggest Edits\" title=\"Suggest Edits\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">mode_edit</i></a>\n <a href=\"https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/http/src/response.ts#L305-L350\" aria-label=\"View Source\" title=\"View Source\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">code</i></a>\n</div>\n </div>\n \n <header class=\"api-header\">\n <h1 id=\"httperrorresponse\">HttpErrorResponse<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/http/HttpErrorResponse#httperrorresponse\"><i class=\"material-icons\">link</i></a></h1>\n \n <label class=\"api-type-label class\">class</label>\n \n \n \n </header>\n \n <aio-toc class=\"embedded\"></aio-toc>\n\n <div class=\"api-body\">\n \n <section class=\"short-description\">\n <p>A response that represents an error or failure, either from a\nnon-successful HTTP status, an error while executing the request,\nor some other failure which occurred during the parsing of the response.</p>\n\n <p><a href=\"api/common/http/HttpErrorResponse#description\">See more...</a></p>\n </section>\n \n \n \n <section class=\"class-overview\">\n<code-example language=\"ts\" hidecopy=\"true\">\nclass <a href=\"api/common/http/HttpErrorResponse\" class=\"code-anchor\">HttpErrorResponse</a> extends <a class=\"code-anchor\" href=\"api/common/http/HttpResponseBase\">HttpResponseBase</a> implements <a class=\"code-anchor\" href=\"\">Error</a> {\n <a class=\"code-anchor\" href=\"api/common/http/HttpErrorResponse#constructor()\"><span class=\"member-name\">constructor</span>(init: { error?: any; headers?: HttpHeaders; status?: number; statusText?: string; url?: string; })</a>\n <a class=\"code-anchor\" href=\"api/common/http/HttpErrorResponse#name\"><span class=\"member-name\">name</span>: 'HttpErrorResponse'</a>\n <a class=\"code-anchor\" href=\"api/common/http/HttpErrorResponse#message\"><span class=\"member-name\">message</span>: string</a>\n <a class=\"code-anchor\" href=\"api/common/http/HttpErrorResponse#error\"><span class=\"member-name\">error</span>: any | null</a>\n <a class=\"code-anchor\" href=\"api/common/http/HttpErrorResponse#ok\"><span class=\"member-name\">ok</span>: false</a>\n\n // inherited from <a class=\"code-anchor\" href=\"api/common/http/HttpResponseBase\">common/http/HttpResponseBase</a>\n <a class=\"code-anchor\" href=\"api/common/http/HttpResponseBase#constructor()\"><span class=\"member-name\">constructor</span>(init: { headers?: HttpHeaders; status?: number; statusText?: string; url?: string; }, defaultStatus: number = HttpStatusCode.Ok, defaultStatusText: string = 'OK')</a>\n <a class=\"code-anchor\" href=\"api/common/http/HttpResponseBase#headers\"><span cl
}