Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for 404 (0.24 sec)

  1. tests/test_tutorial/test_bigger_applications/test_main_an.py

    
    def test_items_bar_token_jessica(client: TestClient):
        response = client.get(
            "/items/bar?token=jessica", headers={"X-Token": "fake-super-secret-token"}
        )
        assert response.status_code == 404
        assert response.json() == {"detail": "Item not found"}
    
    
    def test_items_plumbus_with_no_token(client: TestClient):
        response = client.get(
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 24.6K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_bigger_applications/test_main_an_py39.py

    @needs_py39
    def test_items_bar_token_jessica(client: TestClient):
        response = client.get(
            "/items/bar?token=jessica", headers={"X-Token": "fake-super-secret-token"}
        )
        assert response.status_code == 404
        assert response.json() == {"detail": "Item not found"}
    
    
    @needs_py39
    def test_items_plumbus_with_no_token(client: TestClient):
        response = client.get(
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 24.9K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_bigger_applications/test_main.py

    
    def test_items_bar_token_jessica(client: TestClient):
        response = client.get(
            "/items/bar?token=jessica", headers={"X-Token": "fake-super-secret-token"}
        )
        assert response.status_code == 404
        assert response.json() == {"detail": "Item not found"}
    
    
    def test_items_plumbus_with_no_token(client: TestClient):
        response = client.get(
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 24.6K bytes
    - Viewed (0)
  4. cmd/s3-zip-handlers.go

    			// whether you also have the s3:ListBucket
    			// permission.
    			// * If you have the s3:ListBucket permission
    			//   on the bucket, Amazon S3 will return an
    			//   HTTP status code 404 ("no such key")
    			//   error.
    			// * if you don’t have the s3:ListBucket
    			//   permission, Amazon S3 will return an HTTP
    			//   status code 403 ("access denied") error.`
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 09 10:41:25 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  5. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt

          assertThat(ioe.cause!!).isInstanceOf<EOFException>()
        }
      }
    
      // TODO GET preferred order - with tests to confirm this
      // 1. successful fresh cached GET response
      // 2. unsuccessful (404, 500) fresh cached GET response
      // 3. successful network response
      // 4. successful stale cached GET response
      // 5. unsuccessful response
      @Test
      fun usesCache() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 11K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/bigger-applications.md

    ```
    
    !!! tip
        This last path operation will have the combination of tags: `["items", "custom"]`.
    
        And it will also have both responses in the documentation, one for `404` and one for `403`.
    
    ## The main `FastAPI`
    
    Now, let's see the module at `app/main.py`.
    
    Here's where you import and use the class `FastAPI`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  7. docs/em/docs/tutorial/bigger-applications.md

    {!../../../docs_src/bigger_applications/app/routers/items.py!}
    ```
    
    !!! tip
        👉 🏁 ➡ 🛠️ 🔜 ✔️ 🌀 🔖: `["items", "custom"]`.
    
         &amp; ⚫️ 🔜 ✔️ 👯‍♂️ 📨 🧾, 1️⃣ `404` &amp; 1️⃣ `403`.
    
    ## 👑 `FastAPI`
    
    🔜, ➡️ 👀 🕹 `app/main.py`.
    
    📥 🌐❔ 👆 🗄 &amp; ⚙️ 🎓 `FastAPI`.
    
    👉 🔜 👑 📁 👆 🈸 👈 👔 🌐 👯‍♂️.
    
    &amp; 🏆 👆 ⚛ 🔜 🔜 🖖 🚮 👍 🎯 🕹, 👑 📁 🔜 🙅.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 15.6K bytes
    - Viewed (0)
  8. docs/zh/docs/tutorial/bigger-applications.md

    ```Python hl_lines="30-31" title="app/routers/items.py"
    {!../../../docs_src/bigger_applications/app/routers/items.py!}
    ```
    
    !!! tip
        最后的这个路径操作将包含标签的组合:`["items","custom"]`。
    
        并且在文档中也会有两个响应,一个用于 `404`,一个用于 `403`。
    
    ## `FastAPI` 主体
    
    现在,让我们来看看位于 `app/main.py` 的模块。
    
    在这里你导入并使用 `FastAPI` 类。
    
    这将是你的应用程序中将所有内容联结在一起的主文件。
    
    并且由于你的大部分逻辑现在都存在于其自己的特定模块中,因此主文件的内容将非常简单。
    
    ### 导入 `FastAPI`
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 18.5K bytes
    - Viewed (0)
  9. tests/test_path.py

        assert response.status_code == 200, response.text
        assert response.json() == "Hello World"
    
    
    def test_nonexistent():
        response = client.get("/nonexistent")
        assert response.status_code == 404, response.text
        assert response.json() == {"detail": "Not Found"}
    
    
    def test_path_foobar():
        response = client.get("/path/foobar")
        assert response.status_code == 200
        assert response.json() == "foobar"
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 34.4K bytes
    - Viewed (0)
  10. src/main/resources/fess_config.properties

    crawler.file.protocols=file,smb,smb1,ftp,storage
    crawler.data.env.param.key.pattern=^FESS_ENV_.*
    crawler.ignore.robots.txt=false
    crawler.ignore.robots.tags=false
    crawler.ignore.content.exception=true
    crawler.failure.url.status.codes=404
    crawler.system.monitor.interval=60
    crawler.hotthread.ignore_idle_threads=true
    crawler.hotthread.interval=500ms
    crawler.hotthread.snapshots=10
    crawler.hotthread.threads=3
    crawler.hotthread.timeout=30s
    Properties
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Apr 11 02:34:53 GMT 2024
    - 30.6K bytes
    - Viewed (1)
Back to top