Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 231 - 240 of 578 for denial (0.04 seconds)

  1. tests/test_tutorial/test_authentication_error_status_code/test_tutorial001.py

            "token": "secrettoken",
        }
    
    
    def test_get_me_no_credentials(client: TestClient):
        response = client.get("/me")
        assert response.status_code == 403
        assert response.json() == {"detail": "Not authenticated"}
    
    
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == snapshot(
            {
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 1.9K bytes
    - Click Count (0)
  2. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/CompatibilityFixStrategy.java

                    .peek(element -> {
                        element.attributeObject(COMBINE_CHILDREN).value(COMBINE_MERGE);
                        context.detail("Fixed: " + COMBINE_CHILDREN + "='" + COMBINE_OVERRIDE + "' → '" + COMBINE_MERGE
                                + "' in " + element.name());
                    })
                    .count();
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 22.2K bytes
    - Click Count (0)
  3. cmd/xl-storage_test.go

    		}
    	}
    
    	// TestXLStorage for permission denied.
    	if runtime.GOOS != globalWindowsOSName {
    		permDeniedDir := createPermDeniedFile(t)
    		if err = os.Chmod(permDeniedDir, 0o400); err != nil {
    			t.Fatalf("Unable to change permission to temporary directory %v. %v", permDeniedDir, err)
    		}
    
    		// Initialize xlStorage storage layer for permission denied error.
    		_, err = newLocalXLStorage(permDeniedDir)
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 66K bytes
    - Click Count (0)
  4. docs_src/dependencies/tutorial013_an_py310.py

            yield session
    
    
    def get_user(user_id: int, session: Annotated[Session, Depends(get_session)]):
        user = session.get(User, user_id)
        if not user:
            raise HTTPException(status_code=403, detail="Not authorized")
    
    
    def generate_stream(query: str):
        for ch in query:
            yield ch
            time.sleep(0.1)
    
    
    @app.get("/generate", dependencies=[Depends(get_user)])
    def generate(query: str):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Sep 29 03:29:38 GMT 2025
    - 937 bytes
    - Click Count (0)
  5. .ci/dockerOnLinuxExclusions

    # VERSION_ID from /etc/os-release, and a matching value will cause the
    # Docker tests to be skipped on that OS. If /etc/os-release doesn't exist
    # (as is the case on centos-6, for example) then that OS will again be
    # excluded.
    debian-8
    opensuse-leap-15.1
    ol-7.7
    sles-12.3 # older version used in Vagrant image
    sles-12.5
    sles-15.1
    sles-15.2
    sles-15.3
    
    # These OSes are deprecated and filtered starting with 8.0.0, but need to be excluded
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Thu Jul 29 23:07:12 GMT 2021
    - 615 bytes
    - Click Count (0)
  6. impl/maven-core/src/main/java/org/apache/maven/lifecycle/LifecyclePhaseNotFoundException.java

        private final String lifecyclePhase;
    
        /**
         * Creates a new exception to indicate that the specified lifecycle phase is not defined by any known lifecycle.
         *
         * @param message The detail message, may be {@code null}.
         * @param lifecyclePhase The name of the lifecycle phase that could not be located, may be {@code null}.
         */
        public LifecyclePhaseNotFoundException(String message, String lifecyclePhase) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 1.7K bytes
    - Click Count (0)
  7. docs_src/handling_errors/tutorial001_py310.py

    app = FastAPI()
    
    items = {"foo": "The Foo Wrestlers"}
    
    
    @app.get("/items/{item_id}")
    async def read_item(item_id: str):
        if item_id not in items:
            raise HTTPException(status_code=404, detail="Item not found")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 299 bytes
    - Click Count (0)
  8. impl/maven-core/src/main/java/org/apache/maven/lifecycle/MissingProjectException.java

     *
     */
    public class MissingProjectException extends Exception {
    
        /**
         * Creates a new exception.
         *
         * @param message The detail message, may be {@code null}.
         */
        public MissingProjectException(String message) {
            super(message);
        }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 1.2K bytes
    - Click Count (0)
  9. docs/ja/docs/tutorial/handling-errors.md

    }
    ```
    
    しかし、クライアントが`http://example.com/items/bar`(存在しない`item_id` `"bar"`)をリクエストした場合、HTTPステータスコード404("not found"エラー)と以下のJSONレスポンスが返されます:
    
    ```JSON
    {
      "detail": "Item not found"
    }
    ```
    
    /// tip | 豆知識
    
    `HTTPException`を発生させる際には、`str`だけでなく、JSONに変換できる任意の値を`detail`パラメータとして渡すことができます。
    
    `dict`や`list`などを渡すことができます。
    
    これらは **FastAPI** によって自動的に処理され、JSONに変換されます。
    
    ///
    
    ## カスタムヘッダーの追加 { #add-custom-headers }
    
    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)
  10. src/main/java/jcifs/internal/witness/WitnessRpcMessage.java

        /** Buffer provided is insufficient */
        public static final int ERROR_INSUFFICIENT_BUFFER = 0x0000007A;
        /** Operation is not supported */
        public static final int ERROR_NOT_SUPPORTED = 0x00000032;
        /** Access denied to perform the operation */
        public static final int ERROR_ACCESS_DENIED = 0x00000005;
        /** Invalid state for the operation */
        public static final int ERROR_INVALID_STATE = 0x0000139F;
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 24 00:12:28 GMT 2025
    - 5.5K bytes
    - Click Count (0)
Back to Top