Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 67 for 404 (0.12 sec)

  1. docs/de/docs/how-to/conditional-openapi.md

    <span style="color: green;">INFO</span>:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
    ```
    
    </div>
    
    Wenn Sie dann zu den URLs unter `/openapi.json`, `/docs` oder `/redoc` gehen, erhalten Sie lediglich einen `404 Not Found`-Fehler, wie:
    
    ```JSON
    {
        "detail": "Not Found"
    }
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:18:13 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  2. docs/de/docs/tutorial/response-status-code.md

    * **`400`** und darüber stehen für „Client error“-Responses („Client-Fehler“). Auch diese verwenden Sie am häufigsten.
        * Ein Beispiel ist `404`, für eine „Not Found“-Response („Nicht gefunden“).
        * Für allgemeine Fehler beim Client können Sie einfach `400` verwenden.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:32:57 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  3. docs/pt/docs/tutorial/response-status-code.md

    * **`400`** e acima são para respostas de "Erro do cliente". Este é o segundo tipo que você provavelmente mais usaria.
        * Um exemplo é `404`, para uma resposta "Não encontrado".
        * Para erros genéricos do cliente, você pode usar apenas `400`.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Oct 31 16:22:07 GMT 2022
    - 4.3K bytes
    - Viewed (0)
  4. tests/test_route_scope.py

        response = client.post("/users/rick")
        assert response.status_code == 405, response.text
    
    
    def test_invalid_path_doesnt_match():
        response = client.post("/usersx/rick")
        assert response.status_code == 404, response.text
    
    
    def test_websocket():
        with client.websocket_connect("/items/portal-gun") as websocket:
            data = websocket.receive_json()
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Feb 08 10:23:07 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  5. docs/ko/docs/tutorial/path-operation-configuration.md

    # 경로 작동 설정
    
    *경로 작동 데코레이터*를 설정하기 위해서 전달할수 있는 몇 가지 매개변수가 있습니다.
    
    !!! warning "경고"
        아래 매개변수들은 *경로 작동 함수*가 아닌 *경로 작동 데코레이터*에 직접 전달된다는 사실을 기억하십시오.
    
    ## 응답 상태 코드
    
    *경로 작동*의 응답에 사용될 (HTTP) `status_code`를 정의할수 있습니다.
    
    `404`와 같은 `int`형 코드를 직접 전달할수 있습니다.
    
    하지만 각 코드의 의미를 모른다면, `status`에 있는 단축 상수들을 사용할수 있습니다:
    
    ```Python hl_lines="3  17"
    {!../../../docs_src/path_operation_configuration/tutorial001.py!}
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Feb 11 13:48:31 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  6. docs/zh/docs/tutorial/response-status-code.md

        * `201` 表示**已创建**,通常在数据库中创建新记录后使用
        * `204` 是一种特殊的例子,表示**无内容**。该响应在没有为客户端返回内容时使用,因此,该响应不能包含响应体
    * **`300`** 及以上的状态码用于**重定向**。具有这些状态码的响应不一定包含响应体,但 `304`**未修改**是个例外,该响应不得包含响应体
    * **`400`** 及以上的状态码用于表示**客户端错误**。这些可能是第二常用的类型
        * `404`,用于**未找到**响应
        * 对于来自客户端的一般错误,可以只使用 `400`
    * `500` 及以上的状态码用于表示服务器端错误。几乎永远不会直接使用这些状态码。应用代码或服务器出现问题时,会自动返回这些状态代码
    
    !!! tip "提示"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 22:40:18 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_additional_responses/test_tutorial004.py

            "openapi": "3.1.0",
            "info": {"title": "FastAPI", "version": "0.1.0"},
            "paths": {
                "/items/{item_id}": {
                    "get": {
                        "responses": {
                            "404": {"description": "Item not found"},
                            "302": {"description": "The item was moved"},
                            "403": {"description": "Not enough privileges"},
                            "200": {
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  8. docs_src/app_testing/app_b_an_py310/test_main.py

        assert response.json() == {"detail": "Invalid X-Token header"}
    
    
    def test_read_nonexistent_item():
        response = client.get("/items/baz", headers={"X-Token": "coneofsilence"})
        assert response.status_code == 404
        assert response.json() == {"detail": "Item not found"}
    
    
    def test_create_item():
        response = client.post(
            "/items/",
            headers={"X-Token": "coneofsilence"},
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/path-operation-configuration.md

    ## Response Status Code
    
    You can define the (HTTP) `status_code` to be used in the response of your *path operation*.
    
    You can pass directly the `int` code, like `404`.
    
    But if you don't remember what each number code is for, you can use the shortcut constants in `status`:
    
    === "Python 3.10+"
    
        ```Python hl_lines="1  15"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  10. docs/ja/docs/tutorial/path-operation-configuration.md

    *path operationデコレータ*を設定するためのパラメータがいくつかあります。
    
    !!! warning "注意"
        これらのパラメータは*path operation関数*ではなく、*path operationデコレータ*に直接渡されることに注意してください。
    
    ## レスポンスステータスコード
    
    *path operation*のレスポンスで使用する(HTTP)`status_code`を定義することができます。
    
    `404`のように`int`のコードを直接渡すことができます。
    
    しかし、それぞれの番号コードが何のためのものか覚えていない場合は、`status`のショートカット定数を使用することができます:
    
    ```Python hl_lines="3  17"
    {!../../../docs_src/path_operation_configuration/tutorial001.py!}
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 04:38:26 GMT 2024
    - 4.3K bytes
    - Viewed (0)
Back to top