Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 20 for 418 (0.01 seconds)

  1. docs/en/docs/tutorial/bigger-applications.md

    The result is that in our app, each of the *path operations* from the `admin` module will have:
    
    * The prefix `/admin`.
    * The tag `admin`.
    * The dependency `get_token_header`.
    * The response `418`. 🍵
    
    But that will only affect that `APIRouter` in our app, not in any other code that uses it.
    
    So, for example, other projects could use the same `APIRouter` with a different authentication method.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Mar 07 09:29:03 GMT 2026
    - 19.2K bytes
    - Click Count (0)
  2. docs/ja/docs/tutorial/handling-errors.md

    {* ../../docs_src/handling_errors/tutorial003_py310.py hl[5:7,13:18,24] *}
    
    ここで、`/unicorns/yolo`をリクエストすると、*path operation*は`UnicornException`を`raise`します。
    
    しかし、これは`unicorn_exception_handler`で処理されます。
    
    そのため、HTTPステータスコードが`418`で、JSONの内容が以下のような明確なエラーを受け取ることになります:
    
    ```JSON
    {"message": "Oops! yolo did something. There goes a rainbow..."}
    ```
    
    /// note | 技術詳細
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 11.2K bytes
    - Click Count (0)
  3. docs/zh/docs/tutorial/bigger-applications.md

    这样,原始的 `APIRouter` 将保持不变,因此我们仍然可以与组织中的其他项目共享相同的 `app/internal/admin.py` 文件。
    
    结果是在我们的应用程序中,来自 `admin` 模块的每个*路径操作*都将具有:
    
    * `/admin` 前缀 。
    * `admin` 标签。
    * `get_token_header` 依赖项。
    * `418` 响应。 🍵
    
    但这只会影响我们应用中的 `APIRouter`,而不会影响使用它的任何其他代码。
    
    因此,举例来说,其他项目能够以不同的身份认证方法使用相同的 `APIRouter`。
    
    ### 包含一个*路径操作* { #include-a-path-operation }
    
    我们还可以直接将*路径操作*添加到 `FastAPI` 应用中。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 19.5K bytes
    - Click Count (0)
  4. tests/test_tutorial/test_bigger_applications/test_main.py

                                    "description": "Successful Response",
                                    "content": {"application/json": {"schema": {}}},
                                },
                                "418": {"description": "I'm a teapot"},
                                "422": {
                                    "description": "Validation Error",
                                    "content": {
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 22.8K bytes
    - Click Count (0)
  5. docs/ru/docs/tutorial/handling-errors.md

    Здесь, если запросить `/unicorns/yolo`, то *операция пути* вызовет `UnicornException`.
    
    Но оно будет обработано `unicorn_exception_handler`.
    
    Таким образом, вы получите чистую ошибку с кодом состояния HTTP `418` и содержимым JSON:
    
    ```JSON
    {"message": "Oops! yolo did something. There goes a rainbow..."}
    ```
    
    /// note | Технические детали
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 14K bytes
    - Click Count (0)
  6. docs/uk/docs/tutorial/handling-errors.md

    Тут, якщо ви звернетеся до `/unicorns/yolo`, *операція шляху* згенерує (`raise`) `UnicornException`.
    
    Але вона буде оброблена функцією-обробником `unicorn_exception_handler`.
    
    Отже, ви отримаєте зрозумілу помилку з кодом статусу HTTP `418` і JSON-вмістом:
    
    ```JSON
    {"message": "Oops! yolo did something. There goes a rainbow..."}
    ```
    
    /// note | Технічні деталі
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 13.9K bytes
    - Click Count (0)
  7. docs/de/docs/tutorial/handling-errors.md

    Hier, wenn Sie `/unicorns/yolo` anfordern, wird die *Pfadoperation* eine `UnicornException` `raise`n.
    
    Aber diese wird von `unicorn_exception_handler` gehandhabt.
    
    Sie erhalten also einen sauberen Fehler mit einem HTTP-Statuscode von `418` und dem JSON-Inhalt:
    
    ```JSON
    {"message": "Oops! yolo did something. There goes a rainbow..."}
    ```
    
    /// note | Technische Details
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 10.3K bytes
    - Click Count (0)
  8. docs/pt/docs/tutorial/handling-errors.md

    Essa exceção será manipulada, contudo, pelo `unicorn_exception_handler`.
    
    Dessa forma você receberá um erro "limpo", com o HTTP status code `418` e um JSON com o conteúdo:
    
    ```JSON
    {"message": "Oops! yolo did something. There goes a rainbow..."}
    ```
    
    /// note | Detalhes Técnicos
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 10.1K bytes
    - Click Count (0)
  9. docs/fr/docs/tutorial/handling-errors.md

    Ici, si vous appelez `/unicorns/yolo`, le chemin d'accès va `raise` une `UnicornException`.
    
    Mais elle sera gérée par `unicorn_exception_handler`.
    
    Ainsi, vous recevrez une erreur propre, avec un code d'état HTTP `418` et un contenu JSON :
    
    ```JSON
    {"message": "Oops! yolo did something. There goes a rainbow..."}
    ```
    
    /// note | Détails techniques
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 10K bytes
    - Click Count (0)
  10. docs/ko/docs/tutorial/handling-errors.md

    {* ../../docs_src/handling_errors/tutorial003_py310.py hl[5:7,13:18,24] *}
    
    여기서 `/unicorns/yolo`를 요청하면, *경로 처리*가 `UnicornException`을 `raise`합니다.
    
    하지만 `unicorn_exception_handler`가 이를 처리합니다.
    
    따라서 HTTP 상태 코드 `418`과 다음 JSON 내용을 가진 깔끔한 오류를 받게 됩니다:
    
    ```JSON
    {"message": "Oops! yolo did something. There goes a rainbow..."}
    ```
    
    /// note | 기술 세부사항
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 10.2K bytes
    - Click Count (0)
Back to Top