Skip to content

Commit 0af7a00

Browse files
committed
Add new error codes, update links
1 parent 2212f10 commit 0af7a00

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

learn/advanced/asynchronous_operations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ If a task fails due to an error, all error fields will be appended to the task r
4444

4545
### Summarized task objects
4646

47-
All asynchronous operations return a summarized version of the [`task` object](#response). It contains the following fields in the stated order:
47+
All asynchronous operations return a summarized version of [the full `task` object](#task-api-response). It contains the following fields in the stated order:
4848

4949
| Field | Type | Description |
5050
|--------------|---------|---------------------------------------------------------------------------------------|

reference/api/error_codes.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,3 +168,11 @@ The requested task does not exist. Please ensure that you are using the correct
168168
### `invalid_typo_tolerance_min_word_size_for_typos`
169169

170170
The `minWordSizeForTypos` object is invalid. The value for both `oneTypo` and `twoTypos` should be between `0` and `255`, and `twoTypos` should be greater or equal to `oneTypo`.
171+
172+
### `invalid_task_status`
173+
174+
The requested task status is invalid. Please use one of [these four possible values](/learn/advanced/asynchronous_operations.md#task-status).
175+
176+
### `invalid_task_type`
177+
178+
The requested task type is invalid. Please use one of the values defined in our [asynchronous operations guide](/learn/advanced/asynchronous_operations.md#task-api-response).

resources/faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ More datasets and setting configurations are available [in this repository](http
5151

5252
## I did a call to an API route and got an object as a response. What does it mean?
5353

54-
All asynchronous operations return a summarized version of the [`task` object](/learn/advanced/asynchronous_operations.md#response).
54+
All asynchronous operations return a [summarized version of the `task` object](/learn/advanced/asynchronous_operations.md#summarized-task-objects).
5555

5656
```json
5757
{

0 commit comments

Comments
 (0)