Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 183 for 4064 (0.08 sec)

  1. tests/test_tutorial/test_dependencies/test_tutorial008d.py

        return mod
    
    
    def test_get_no_item(mod: ModuleType):
        client = TestClient(mod.app)
        response = client.get("/items/foo")
        assert response.status_code == 404, response.text
        assert response.json() == {"detail": "Item not found, there's only a plumbus here"}
    
    
    def test_get(mod: ModuleType):
        client = TestClient(mod.app)
        response = client.get("/items/plumbus")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  2. docs/pt/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>
    
    Então, se você acessar as URLs em `/openapi.json`, `/docs` ou `/redoc`, você receberá apenas um erro `404 Not Found` como:
    
    ```JSON
    {
        "detail": "Not Found"
    }
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_handling_errors/test_tutorial001.py

        assert response.status_code == 200, response.text
        assert response.json() == {"item": "The Foo Wrestlers"}
    
    
    def test_get_item_not_found():
        response = client.get("/items/bar")
        assert response.status_code == 404, response.text
        assert response.headers.get("x-error") is None
        assert response.json() == {"detail": "Item not found"}
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  4. 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"},
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Aug 15 22:31:16 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  5. docs_src/app_testing/app_b_py39/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"},
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  6. docs/de/docs/tutorial/path-operation-configuration.md

    Sie können direkt den `int`-Code übergeben, etwa `404`.
    
    Aber falls Sie sich nicht mehr erinnern, wofür jeder Nummerncode steht, können Sie die Abkürzungs-Konstanten in `status` verwenden:
    
    {* ../../docs_src/path_operation_configuration/tutorial001_py310.py hl[1,15] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  7. docs/ru/docs/tutorial/path-operation-configuration.md

    ///
    
    ## Статус-код ответа { #response-status-code }
    
    Вы можете определить (HTTP) `status_code`, который будет использован в ответах вашей *операции пути*.
    
    Вы можете передать только `int`-значение кода, например `404`.
    
    Но если вы не помните, для чего нужен каждый числовой код, вы можете использовать сокращенные константы в параметре `status`:
    
    {* ../../docs_src/path_operation_configuration/tutorial001_py310.py hl[1,15] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/path-operation-configuration.md

    ///
    
    ## Response Status Code { #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`:
    
    {* ../../docs_src/path_operation_configuration/tutorial001_py310.py hl[1,15] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/Constants.java

         * The HTTP status code for Forbidden.
         */
        public static final int FORBIDDEN_STATUS_CODE = 403;
    
        /**
         * The HTTP status code for Not Found.
         */
        public static final int NOT_FOUND_STATUS_CODE = 404;
    
        /**
         * The HTTP status code for Server Error.
         */
        public static final int SERVER_ERROR_STATUS_CODE = 500;
    
        /**
         * A constant for no transformer.
         */
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  10. index.yaml

        maintainers:
        - email: ******@****.***
          name: MinIO, Inc
        name: minio
        sources:
        - https://github.com/minio/minio
        urls:
        - https://charts.min.io/helm-releases/minio-4.0.14.tgz
        version: 4.0.14
      - apiVersion: v1
        appVersion: RELEASE.2022-08-22T23-53-06Z
        created: "2025-01-02T21:34:25.115194076-08:00"
        description: Multi-Cloud Object Storage
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Jan 03 05:34:47 UTC 2025
    - 55.1K bytes
    - Viewed (0)
Back to top