- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 21 for HTTPException (1.08 sec)
-
docs/en/docs/reference/exceptions.md
# Exceptions - `HTTPException` and `WebSocketException` These are the exceptions that you can raise to show errors to the client. When you raise an exception, as would happen with normal Python, the rest of the execution is aborted. This way you can raise these exceptions from anywhere in the code to abort a request and show the error to the client. You can use: * `HTTPException` * `WebSocketException`
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 597 bytes - Viewed (0) -
docs/es/docs/tutorial/handling-errors.md
} } ``` #### `HTTPException` de FastAPI vs `HTTPException` de Starlette **FastAPI** tiene su propio `HTTPException`. Y la clase de error `HTTPException` de **FastAPI** hereda de la clase de error `HTTPException` de Starlette. La รบnica diferencia es que el `HTTPException` de **FastAPI** acepta cualquier dato JSON-able para el campo `detail`, mientras que el `HTTPException` de Starlette solo acepta strings para ello.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Dec 30 18:26:57 UTC 2024 - 9.6K bytes - Viewed (0) -
docs/em/docs/tutorial/dependencies/dependencies-with-yield.md
**FastAPI** โ๏ธ ๐ซ ๐ ๐ ๐. /// ## ๐ โฎ๏ธ `yield` & `HTTPException` ๐ ๐ ๐ ๐ ๐ช โ๏ธ ๐ โฎ๏ธ `yield` & โ๏ธ `try` ๐ซ ๐ โ โ . โซ๏ธ 5๏ธโฃ๐ ๐ ๐ค `HTTPException` โ๏ธ ๐ ๐ช ๐, โฎ๏ธ `yield`. โ๏ธ **โซ๏ธ ๐ ๐ซ ๐ท**. ๐ช ๐ ๐ โฎ๏ธ `yield` ๐ ๏ธ *โฎ๏ธ* ๐จ ๐จ, [โ ๐โ๐ฆบ](../handling-errors.md#_4){.internal-link target=_blank} ๐ โ๏ธ โช ๐. ๐ค ๐ณ ๐ฝ โ ๐ฎ ๐ ๐ ๐ช ๐ (โฎ๏ธ `yield`).
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 8.4K bytes - Viewed (0) -
docs/en/docs/tutorial/handling-errors.md
## Use `HTTPException` { #use-httpexception } To return HTTP responses with errors to the client you use `HTTPException`. ### Import `HTTPException` { #import-httpexception } {* ../../docs_src/handling_errors/tutorial001.py hl[1] *} ### Raise an `HTTPException` in your code { #raise-an-httpexception-in-your-code }
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 9.4K bytes - Viewed (0) -
docs/em/docs/tutorial/handling-errors.md
"size": "XL" } } ``` #### FastAPI `HTTPException` ๐ ๐ `HTTPException` **FastAPI** โ๏ธ ๐ฎ ๐ `HTTPException`. & **FastAPI**'โ `HTTPException` โ ๐ ๐ โช๏ธโก๏ธ ๐ `HTTPException` โ ๐. ๐ด ๐บ, ๐ **FastAPI**'โ `HTTPException` โ ๐ ๐ฎ ๐ ๐ ๐จ. ๐ ๐ช/โ๏ธ ๐ โณ 2๏ธโฃ.0๏ธโฃ & ๐โโ ๐. , ๐ ๐ช ๐ง ๐โโ **FastAPI**'โ `HTTPException` ๐ ๐ ๐. โ๏ธ ๐โ ๐ ยฎ โ ๐โ๐ฆบ, ๐ ๐ ยฎ โซ๏ธ ๐ `HTTPException`.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 8.1K bytes - Viewed (0) -
regression-test/src/androidTest/java/okhttp/regression/compare/AndroidHttpEngineTest.kt
*/ package okhttp.regression.compare import android.net.http.ConnectionMigrationOptions import android.net.http.DnsOptions import android.net.http.HttpEngine import android.net.http.HttpException import android.net.http.QuicOptions import android.net.http.UrlRequest import android.net.http.UrlRequest.Callback import android.net.http.UrlRequest.REQUEST_PRIORITY_MEDIUM import android.net.http.UrlResponseInfo
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 6.3K bytes - Viewed (0) -
docs/en/docs/advanced/security/http-basic-auth.md
### Return the error { #return-the-error } After detecting that the credentials are incorrect, return an `HTTPException` with a status code 401 (the same returned when no credentials are provided) and add the header `WWW-Authenticate` to make the browser show the login prompt again:
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 5K bytes - Viewed (0) -
docs/em/docs/advanced/websockets.md
* `Cookie` * `Header` * `Path` * `Query` ๐ซ ๐ท ๐ ๐ ๐ FastAPI ๐/*โก ๐ ๏ธ*: {* ../../docs_src/websockets/tutorial002.py hl[66:77,76:91] *} /// info ๐ *๏ธโฃ โซ๏ธ ๐ซ ๐ค โ ๐ ๐ค `HTTPException`, โฉ๏ธ ๐ฅ ๐ค `WebSocketException`. ๐ ๐ช โ๏ธ ๐ช ๐ โช๏ธโก๏ธ <a href="https://tools.ietf.org/html/rfc6455#section-7.4.1" class="external-link" target="_blank">โ ๐ ๐ฌ ๐ง</a>. /// ### ๐ *๏ธโฃ โฎ๏ธ ๐
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 4.7K bytes - Viewed (0) -
docs/pt/docs/advanced/websockets.md
{*../../docs_src/websockets/tutorial002_an_py310.py hl[68:69,82]*} /// info | Informaรงรฃo Como isso รฉ um WebSocket, nรฃo faz muito sentido levantar uma `HTTPException`, em vez disso levantamos uma `WebSocketException`.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 5.7K bytes - Viewed (0) -
docs/em/docs/advanced/security/http-basic-auth.md
๐, โซ๏ธ ๐ โ ๐ ๐ฐ ๐ฌ `stanleyjobsox` `stanleyjobson` ๐ โซ๏ธ โ ๐ฌ `johndoe` `stanleyjobson`. & ๐ ๐. ๐ ๐, โ๏ธ `secrets.compare_digest()` ๐ ๐ธ ๐, โซ๏ธ ๐ ๐ ๐ก ๐ ๐ โ ๐โโ ๐. ### ๐จ โ โฎ๏ธ ๐ ๐ ๐ โ, ๐จ `HTTPException` โฎ๏ธ ๐ ๐ 4๏ธโฃ0๏ธโฃ1๏ธโฃ (๐ ๐จ ๐โ ๐ โโ ๐ ๐) & ๐ฎ ๐ `WWW-Authenticate` โ ๐ฅ ๐ฆ ๐ณ ๐ ๐:
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 4K bytes - Viewed (0)