Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 241 - 250 of 692 for detach (0.04 seconds)

  1. docs/zh-hant/docs/tutorial/handling-errors.md

    }
    ```
    
    但如果用戶端請求 `http://example.com/items/bar`(不存在的 `item_id` `"bar"`),會收到 404("not found")的 HTTP 狀態碼,以及以下 JSON 回應:
    
    ```JSON
    {
      "detail": "Item not found"
    }
    ```
    
    /// tip
    
    在 raise 一個 `HTTPException` 時,你可以將任何可轉為 JSON 的值作為 `detail` 參數,不只限於 `str`。
    
    你可以傳入 `dict`、`list` 等。
    
    **FastAPI** 會自動處理並轉為 JSON。
    
    ///
    
    ## 新增自訂標頭 { #add-custom-headers }
    
    有些情況需要在 HTTP 錯誤回應中加入自訂標頭,例如某些安全性情境。
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 8.3K bytes
    - Click Count (0)
  2. docs_src/dependencies/tutorial008c_py310.py

            raise InternalError(
                f"The portal gun is too dangerous to be owned by {username}"
            )
        if item_id != "plumbus":
            raise HTTPException(
                status_code=404, detail="Item not found, there's only a plumbus here"
            )
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 660 bytes
    - Click Count (0)
  3. .gitattributes

    # Auto detect text files and perform LF normalization
    * text=auto
    
    # Known text files
    *.java text
    *.xml text
    *.yml text
    *.md text
    *.sh text
    *.css text
    *.txt text
    
    # Known binary files
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Nov 04 21:50:10 GMT 2014
    - 196 bytes
    - Click Count (0)
  4. docs_src/dependencies/tutorial008c_an_py310.py

            raise InternalError(
                f"The portal gun is too dangerous to be owned by {username}"
            )
        if item_id != "plumbus":
            raise HTTPException(
                status_code=404, detail="Item not found, there's only a plumbus here"
            )
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 700 bytes
    - Click Count (0)
  5. helm/minio/templates/_helper_create_user.txt

      rm -f $MINIO_ACCESSKEY_SECRETKEY_TMP
    
      # set policy for user
      if [ ! -z $POLICY -a $POLICY != " " ] ; then
          echo "Adding policy '$POLICY' for '$USER'"
          set +e ; # policy already attach errors out, allow it.
          ${MC} admin policy attach myminio $POLICY --user=$USER
          set -e
      else
          echo "User '$USER' has no policy attached."
      fi
    }
    
    # Try connecting to MinIO instance
    {{- if .Values.tls.enabled }}
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Dec 12 23:43:32 GMT 2023
    - 3.2K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/job/AggregateLogJobTest.java

            // Verify large message is handled
            assertNotNull(result);
            assertTrue(result.length() > 1000);
            assertTrue(result.contains("Error detail 0"));
            assertTrue(result.contains("Error detail 999"));
            assertTrue(result.endsWith("\n"));
        }
    
        @Test
        public void test_execute_withCheckedExceptionWrapped() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 12.3K bytes
    - Click Count (0)
  7. tests/test_request_params/test_body/test_optional_str.py

    
    def test_model_optional_str_missing():
        client = TestClient(app)
        response = client.post("/model-optional-str")
        assert response.status_code == 422, response.text
        assert response.json() == {
            "detail": [
                {
                    "input": None,
                    "loc": ["body"],
                    "msg": "Field required",
                    "type": "missing",
                },
            ],
        }
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 11.5K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/storage/StorageClientFactory.java

        private static final Logger logger = LogManager.getLogger(StorageClientFactory.class);
    
        private StorageClientFactory() {
            // Utility class
        }
    
        /**
         * Auto-detect storage type from endpoint URL.
         *
         * @param endpoint the storage endpoint URL
         * @return detected storage type
         */
        public static StorageType detectStorageType(final String endpoint) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 20 05:56:45 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  9. tests/test_openapi_separate_input_output_schemas.py

                            "properties": {
                                "detail": {
                                    "items": {
                                        "$ref": "#/components/schemas/ValidationError"
                                    },
                                    "type": "array",
                                    "title": "Detail",
                                }
                            },
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 27.8K bytes
    - Click Count (0)
  10. .teamcity/src/test/kotlin/ApplyDefaultConfigurationTest.kt

                "-Dorg.gradle.java.installations.auto-download=false",
                "-Porg.gradle.java.installations.auto-download=false",
                "-Dorg.gradle.java.installations.auto-detect=false",
                "-Porg.gradle.java.installations.auto-detect=false",
                "\"-Dorg.gradle.java.installations.paths=$expectedInstallationPaths\"",
                "\"-Porg.gradle.java.installations.paths=$expectedInstallationPaths\"",
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Fri Mar 13 05:03:56 GMT 2026
    - 7.1K bytes
    - Click Count (0)
Back to Top