Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 61 - 70 of 179 for 404 (0.01 seconds)

  1. fastapi/exceptions.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")
            return {"item": items[item_id]}
        ```
        """
    
        def __init__(
            self,
            status_code: Annotated[
                int,
                Doc(
                    """
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 11 18:41:21 GMT 2026
    - 7.3K bytes
    - Click Count (0)
  2. docs/ja/docs/tutorial/response-status-code.md

    * **`300 - 399`** は「リダイレクト」のためのものです。これらのステータスコードを持つレスポンスは`304`(Not Modified)を除き、ボディを持つことも持たないこともできます。`304`はボディを持ってはいけません。
    * **`400 - 499`** は「クライアントエラー」のレスポンスのためのものです。これらは、おそらく最も多用するであろう2番目のタイプです。
        * 例えば、`404`は「Not Found」レスポンスです。
        * クライアントからの一般的なエラーについては、`400`を使用することができます。
    * `500 - 599` はサーバーエラーのためのものです。これらを直接使うことはほとんどありません。アプリケーションコードやサーバーのどこかで何か問題が発生した場合、これらのステータスコードのいずれかが自動的に返されます。
    
    /// tip | 豆知識
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 5.6K bytes
    - Click Count (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Call.kt

       *
       * Note that transport-layer success (receiving a HTTP response code, headers and body) does not
       * necessarily indicate application-layer success: `response` may still indicate an unhappy HTTP
       * response code like 404 or 500.
       *
       * @throws IOException if the request could not be executed due to cancellation, a connectivity
       *     problem or timeout. Because networks can fail during an exchange, it is possible that the
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Nov 05 18:28:35 GMT 2025
    - 6.8K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/it/search/FavoritesApiTests.java

                    .params(params)
                    .when()
                    .post("/api/v1/documents/invalid_doc_id_12345/favorite")
                    .then()
                    .statusCode(200); // May return 200 with error or 404
        }
    
        private static void createFileConfig() {
            final Map<String, Object> requestBody = new HashMap<>();
            final String paths = "file:" + getTestDataPath();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 20 03:03:44 GMT 2025
    - 9.9K bytes
    - Click Count (0)
  5. docs/ja/docs/tutorial/path-operation-configuration.md

    /// warning | 注意
    
    これらのパラメータは*path operationデコレータ*に直接渡され、*path operation関数*に渡されないことに注意してください。
    
    ///
    
    ## レスポンスステータスコード { #response-status-code }
    
    *path operation*のレスポンスで使用する(HTTP)`status_code`を定義することができます。
    
    `404`のように`int`のコードを直接渡すことができます。
    
    しかし、それぞれの番号コードが何のためのものか覚えていない場合は、`status`のショートカット定数を使用することができます:
    
    {* ../../docs_src/path_operation_configuration/tutorial001_py310.py hl[1,15] *}
    
    そのステータスコードはレスポンスで使用され、OpenAPIスキーマに追加されます。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 4.8K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/api/WebApiManagerTest.java

            StatusCodeWebApiManager manager = new StatusCodeWebApiManager(404);
    
            TestHttpServletRequest request = new TestHttpServletRequest();
            TestHttpServletResponse response = new TestHttpServletResponse();
            TestFilterChain chain = new TestFilterChain();
    
            manager.process(request, response, chain);
            assertEquals(404, response.getStatus());
    
            // Test with different status code
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 06:04:58 GMT 2026
    - 26.9K bytes
    - Click Count (0)
  7. tests/test_include_router_defaults_overrides.py

        deprecated=True,
    )
    router2_default = APIRouter()
    router4_override = APIRouter(
        prefix="/level4",
        tags=["level4a", "level4b"],
        dependencies=[Depends(dep4)],
        responses={
            404: {"description": "Client error level 4"},
            504: {"description": "Server error level 4"},
        },
        default_response_class=ResponseLevel4,
        callbacks=callback_router4.routes,
        deprecated=True,
    )
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 385.6K bytes
    - Click Count (0)
  8. cmd/update_test.go

    	}{
    		{httpServer1.URL, "", nil},
    		{httpServer2.URL, "fbe246edbd382902db9a4035df7dce8cb441357d minio.RELEASE.2016-10-07T01-16-39Z\n", nil},
    		{httpServer3.URL, "", fmt.Errorf("Error downloading URL %s. Response: 404 Not Found", httpServer3.URL)},
    	}
    
    	for _, testCase := range testCases {
    		u, err := url.Parse(testCase.releaseChecksumURL)
    		if err != nil {
    			t.Fatal(err)
    		}
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Feb 18 16:25:55 GMT 2025
    - 10.4K bytes
    - Click Count (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/gcs/GcsClient.java

            try {
                return storage.get(BlobId.of(bucketName, path));
            } catch (final StorageException e) {
                final int code = e.getCode();
                switch (code) {
                case 404:
                    if (logger.isDebugEnabled()) {
                        logger.debug("Object not found: bucket={}, path={}", bucketName, path);
                    }
                    break;
                case 403:
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Thu Dec 11 08:38:29 GMT 2025
    - 17.5K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/crawler/FessCrawlerThread.java

        protected static final String CRAWLER_CLIENTS = "crawlerClients";
    
        /** HTTP status code for Not Found */
        private static final int HTTP_STATUS_NOT_FOUND = 404;
    
        /** HTTP status code for OK */
        private static final int HTTP_STATUS_OK = 200;
    
        /**
         * Cache for client rules mapping client names to their corresponding URL patterns.
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Dec 11 09:47:03 GMT 2025
    - 19.5K bytes
    - Click Count (0)
Back to Top