mirror of https://github.com/tiangolo/fastapi.git
✏ Fix typo in Tutorial - Handling Errors (#2486)
This commit is contained in:
parent
bda392cba6
commit
5dc3ec4a65
|
|
@ -39,7 +39,7 @@ This also means that if you are inside a utility function that you are calling i
|
|||
|
||||
The benefit of raising an exception over `return`ing a value will be more evident in the section about Dependencies and Security.
|
||||
|
||||
In this example, when the client request an item by an ID that doesn't exist, raise an exception with a status code of `404`:
|
||||
In this example, when the client requests an item by an ID that doesn't exist, raise an exception with a status code of `404`:
|
||||
|
||||
```Python hl_lines="11"
|
||||
{!../../../docs_src/handling_errors/tutorial001.py!}
|
||||
|
|
|
|||
Loading…
Reference in New Issue