Skip to content
This repository was archived by the owner on Jun 2, 2021. It is now read-only.

Commit 8025deb

Browse files
committed
v3 docs: Remove accidentally duplicated section
We ended up with two "Errors" sections in the upgrade guide after the recent refactor. Removing one of them. Authored-by: Reid Mitchell <rmitchell@pivotal.io>
1 parent 98740b2 commit 8025deb

1 file changed

Lines changed: 0 additions & 62 deletions

File tree

docs/v3/source/includes/upgrade_guide/conceptual_changes/_asynchronous_operations.md

Lines changed: 0 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -7,65 +7,3 @@ For clients that want to report the outcome of an asynchronous operation, the ex
77
An example of an asynchronous endpoint is the [delete app endpoint](#delete-an-app).
88

99
Read more about [the job resource](#jobs).
10-
11-
<!-- We need to use plain html here to specify different ids. Otherwise the framework will mess up urls -->
12-
<h3 id="errors-v3">Errors</h3>
13-
14-
```
15-
Example Request
16-
```
17-
18-
```shell
19-
curl "https://api.example.org/v2/apps/not-found" \
20-
-X GET \
21-
-H "Authorization: bearer [token]"
22-
```
23-
24-
```
25-
Example Response
26-
```
27-
28-
```http
29-
HTTP/1.1 404 Not Found
30-
Content-Type: application/json
31-
32-
{
33-
"description": "The app could not be found: not-found",
34-
"error_code": "CF-AppNotFound",
35-
"code": 100004
36-
}
37-
```
38-
39-
```
40-
Example Request
41-
```
42-
43-
```shell
44-
curl "https://api.example.org/v3/apps/not-found" \
45-
-X GET \
46-
-H "Authorization: bearer [token]"
47-
```
48-
49-
```
50-
Example Response
51-
```
52-
53-
```http
54-
HTTP/1.1 404 Not Found
55-
Content-Type: application/json
56-
57-
{
58-
"errors": [
59-
{
60-
"detail": "App not found",
61-
"title": "CF-ResourceNotFound",
62-
"code": 10010
63-
}
64-
]
65-
}
66-
```
67-
68-
The V3 API returns an array of errors instead of a single error like in V2.
69-
70-
Clients may wish to display all returned errors.
71-

0 commit comments

Comments
 (0)