Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 34 for 404 (0.14 sec)

  1. docs/zh/docs/tutorial/response-status-code.md

        * `201` 表示**已创建**,通常在数据库中创建新记录后使用
        * `204` 是一种特殊的例子,表示**无内容**。该响应在没有为客户端返回内容时使用,因此,该响应不能包含响应体
    * **`300`** 及以上的状态码用于**重定向**。具有这些状态码的响应不一定包含响应体,但 `304`**未修改**是个例外,该响应不得包含响应体
    * **`400`** 及以上的状态码用于表示**客户端错误**。这些可能是第二常用的类型
        * `404`,用于**未找到**响应
        * 对于来自客户端的一般错误,可以只使用 `400`
    * `500` 及以上的状态码用于表示服务器端错误。几乎永远不会直接使用这些状态码。应用代码或服务器出现问题时,会自动返回这些状态代码
    
    !!! tip "提示"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 22:40:18 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  2. docs/em/docs/how-to/conditional-openapi.md

    $ OPENAPI_URL= uvicorn main:app
    
    <span style="color: green;">INFO</span>:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
    ```
    
    </div>
    
    ⤴️ 🚥 👆 🚶 📛 `/openapi.json`, `/docs`, ⚖️ `/redoc` 👆 🔜 🤚 `404 Not Found` ❌ 💖:
    
    ```JSON
    {
        "detail": "Not Found"
    }
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Aug 19 19:54:04 GMT 2023
    - 2K bytes
    - Viewed (0)
  3. mockwebserver/README.md

                    return new MockResponse().setResponseCode(200).setBody("{\\\"info\\\":{\\\"name\":\"Lucas Albuquerque\",\"age\":\"21\",\"gender\":\"male\"}}");
            }
            return new MockResponse().setResponseCode(404);
        }
    };
    server.setDispatcher(dispatcher);
    ```
    
    
    ### Download
    
    ```kotlin
    testImplementation("com.squareup.okhttp3:mockwebserver:4.12.0")
    ```
    
    ### License
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Dec 17 15:34:10 GMT 2023
    - 5K bytes
    - Viewed (1)
  4. mockwebserver/src/test/java/mockwebserver3/internal/http2/Http2Server.kt

        }
      }
    
      private fun send404(
        stream: Http2Stream,
        path: String,
      ) {
        val responseHeaders =
          listOf(
            Header(":status", "404"),
            Header(":version", "HTTP/1.1"),
            Header("content-type", "text/plain"),
          )
        stream.writeHeaders(
          responseHeaders = responseHeaders,
          outFinished = false,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/path-operation-configuration.md

    ## Response Status Code
    
    You can define the (HTTP) `status_code` to be used in the response of your *path operation*.
    
    You can pass directly the `int` code, like `404`.
    
    But if you don't remember what each number code is for, you can use the shortcut constants in `status`:
    
    === "Python 3.10+"
    
        ```Python hl_lines="1  15"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  6. docs/ja/docs/tutorial/path-operation-configuration.md

    *path operationデコレータ*を設定するためのパラメータがいくつかあります。
    
    !!! warning "注意"
        これらのパラメータは*path operation関数*ではなく、*path operationデコレータ*に直接渡されることに注意してください。
    
    ## レスポンスステータスコード
    
    *path operation*のレスポンスで使用する(HTTP)`status_code`を定義することができます。
    
    `404`のように`int`のコードを直接渡すことができます。
    
    しかし、それぞれの番号コードが何のためのものか覚えていない場合は、`status`のショートカット定数を使用することができます:
    
    ```Python hl_lines="3  17"
    {!../../../docs_src/path_operation_configuration/tutorial001.py!}
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 04:38:26 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  7. docs/em/docs/tutorial/response-status-code.md

    * **`300`** &amp; 🔛 "❎". 📨 ⏮️ 👫 👔 📟 5️⃣📆 ⚖️ 5️⃣📆 🚫 ✔️ 💪, 🌖 `304`, "🚫 🔀", ❔ 🔜 🚫 ✔️ 1️⃣.
    * **`400`** &amp; 🔛 "👩‍💻 ❌" 📨. 👫 🥈 🆎 👆 🔜 🎲 ⚙️ 🏆.
        * 🖼 `404`, "🚫 🔎" 📨.
        * 💊 ❌ ⚪️➡️ 👩‍💻, 👆 💪 ⚙️ `400`.
    * `500` &amp; 🔛 💽 ❌. 👆 🌖 🙅 ⚙️ 👫 🔗. 🕐❔ 🕳 🚶 ❌ 🍕 👆 🈸 📟, ⚖️ 💽, ⚫️ 🔜 🔁 📨 1️⃣ 👫 👔 📟.
    
    !!! tip
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  8. docs/pt/docs/tutorial/path-operation-configuration.md

    ## Código de Status da Resposta
    
    Você pode definir o `status_code` (HTTP) para ser usado na resposta da sua *operação de rota*.
    
    Você pode passar diretamente o código `int`, como `404`.
    
    Mas se você não se lembrar o que cada código numérico significa, pode usar as constantes de atalho em `status`:
    
    === "Python 3.8 and above"
    
        ```Python hl_lines="3  17"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  9. docs/de/docs/tutorial/path-operation-configuration.md

    ## Response-Statuscode
    
    Sie können den (HTTP-)`status_code` definieren, den die Response Ihrer *Pfadoperation* verwenden soll.
    
    Sie können direkt den `int`-Code übergeben, etwa `404`.
    
    Aber falls Sie sich nicht mehr erinnern, wofür jede Nummer steht, können Sie die Abkürzungs-Konstanten in `status` verwenden:
    
    === "Python 3.10+"
    
        ```Python hl_lines="1  15"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:07:48 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  10. docs/ru/docs/tutorial/path-operation-configuration.md

    ## Коды состояния
    
    Вы можете определить (HTTP) `status_code`, который будет использован в ответах вашей *операции пути*.
    
    Вы можете передать только `int`-значение кода, например `404`.
    
    Но если вы не помните, для чего нужен каждый числовой код, вы можете использовать сокращенные константы в параметре `status`:
    
    === "Python 3.10+"
    
        ```Python hl_lines="1  15"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 8K bytes
    - Viewed (0)
Back to top