Skip to content

Commit 8e740e9

Browse files
committed
update doc with new errors
1 parent 049f801 commit 8e740e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/core/event_handler/api_gateway.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -595,9 +595,9 @@ You can easily raise any HTTP Error back to the client using `ServiceError` exce
595595
???+ info
596596
If you need to send custom headers, use [Response](#fine-grained-responses) class instead.
597597

598-
We provide pre-defined errors for the most popular ones such as HTTP 400, 401, 404, 500.
598+
We provide pre-defined errors for the most popular ones based on [AWS Lambda API Reference Common Erros](https://docs.aws.amazon.com/lambda/latest/api/CommonErrors.html)
599599

600-
```python hl_lines="6-11 23 28 33 38 43" title="Raising common HTTP Status errors (4xx, 5xx)"
600+
```python hl_lines="7-15 27 32 37 42 47 52 57 62 67" title="Raising common HTTP Status errors (4xx, 5xx)"
601601
--8<-- "examples/event_handler_rest/src/raising_http_errors.py"
602602
```
603603

0 commit comments

Comments
 (0)