Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for 404 (0.15 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. docs/ru/docs/tutorial/handling-errors.md

    Они похожи на двухсотые HTTP статус-коды (от 200 до 299), которые означают, что запрос обработан успешно.
    
    Четырёхсотые статус-коды означают, что ошибка произошла по вине клиента.
    
    Помните ли ошибки **"404 Not Found "** (и шутки) ?
    
    ## Использование `HTTPException`
    
    Для возврата клиенту HTTP-ответов с ошибками используется `HTTPException`.
    
    ### Импортируйте `HTTPException`
    
    ```Python hl_lines="1"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 14.5K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/crawler/FessCrawlerThread.java

                    }
                    if (httpStatusCode == 404) {
                        storeChildUrlsToQueue(urlQueue, getAnchorSet(document.get(fessConfig.getIndexFieldAnchor())));
                        if (!indexingHelper.deleteDocument(searchEngineClient, id)) {
                            logger.debug("Failed to delete 404 document: {}", url);
                        }
                        return false;
                    }
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  5. docs/pt/docs/tutorial/handling-errors.md

    Os status codes na faixa dos 400 significam que houve um erro por parte do cliente.
    
    Você se lembra de todos aqueles erros (e piadas) a respeito do "**404 Not Found**"?
    
    ## Use o `HTTPException`
    
    Para retornar ao cliente *responses* HTTP com erros, use o `HTTPException`.
    
    ### Import `HTTPException`
    
    ```Python hl_lines="1"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 10K bytes
    - Viewed (0)
  6. docs/ja/docs/tutorial/handling-errors.md

    * など
    
    これらの場合、通常は **400**(400から499)の範囲内の **HTTPステータスコード** を返すことになります。
    
    これは200のHTTPステータスコード(200から299)に似ています。これらの「200」ステータスコードは、何らかの形でリクエスト「成功」であったことを意味します。
    
    400の範囲にあるステータスコードは、クライアントからのエラーがあったことを意味します。
    
    **"404 Not Found"** のエラー(およびジョーク)を覚えていますか?
    
    ## `HTTPException`の使用
    
    HTTPレスポンスをエラーでクライアントに返すには、`HTTPException`を使用します。
    
    ### `HTTPException`のインポート
    
    ```Python hl_lines="1"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  7. docs/de/docs/tutorial/handling-errors.md

    Die Statuscodes im 400er-Bereich bedeuten hingegen, dass es einen Fehler gab.
    
    Erinnern Sie sich an all diese **404 Not Found** Fehler (und Witze)?
    
    ## `HTTPException` verwenden
    
    Um HTTP-Responses mit Fehlern zum Client zurückzugeben, verwenden Sie `HTTPException`.
    
    ### `HTTPException` importieren
    
    ```Python hl_lines="1"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:28:29 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top