Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 3,843 for bcode (0.02 seconds)

  1. docs/tr/docs/advanced/response-change-status-code.md

    # Response - Status Code Değiştirme { #response-change-status-code }
    
    Muhtemelen daha önce varsayılan bir [Response Status Code](../tutorial/response-status-code.md) ayarlayabileceğinizi okumuşsunuzdur.
    
    Ancak bazı durumlarda, varsayılandan farklı bir status code döndürmeniz gerekir.
    
    ## Kullanım senaryosu { #use-case }
    
    Örneğin, varsayılan olarak "OK" `200` HTTP status code'u döndürmek istediğinizi düşünün.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 1.8K bytes
    - Click Count (0)
  2. docs/es/docs/tutorial/response-status-code.md

    # Código de Estado del Response { #response-status-code }
    
    De la misma manera que puedes especificar un modelo de response, también puedes declarar el código de estado HTTP usado para el response con el parámetro `status_code` en cualquiera de las *path operations*:
    
    * `@app.get()`
    * `@app.post()`
    * `@app.put()`
    * `@app.delete()`
    * etc.
    
    {* ../../docs_src/response_status_code/tutorial001_py310.py hl[6] *}
    
    /// note | Nota
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 4.3K bytes
    - Click Count (0)
  3. docs/en/docs/tutorial/response-status-code.md

    # Response Status Code { #response-status-code }
    
    The same way you can specify a response model, you can also declare the HTTP status code used for the response with the parameter `status_code` in any of the *path operations*:
    
    * `@app.get()`
    * `@app.post()`
    * `@app.put()`
    * `@app.delete()`
    * etc.
    
    {* ../../docs_src/response_status_code/tutorial001_py310.py hl[6] *}
    
    /// note
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 3.9K bytes
    - Click Count (0)
  4. docs/tr/docs/tutorial/response-status-code.md

    # Response Status Code { #response-status-code }
    
    Bir response model tanımlayabildiğiniz gibi, herhangi bir *path operation* içinde `status_code` parametresiyle response için kullanılacak HTTP status code'u da belirtebilirsiniz:
    
    * `@app.get()`
    * `@app.post()`
    * `@app.put()`
    * `@app.delete()`
    * vb.
    
    {* ../../docs_src/response_status_code/tutorial001_py310.py hl[6] *}
    
    /// note | Not
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 4.4K bytes
    - Click Count (0)
  5. docs/zh-hant/docs/tutorial/response-status-code.md

    它們只是方便用的常數,值與數字相同,但這樣你可以用編輯器的自動完成來找到它們:
    
    <img src="/img/tutorial/response-status-code/image02.png">
    
    /// note | 技術細節
    
    你也可以使用 `from starlette import status`。
    
    **FastAPI** 將同一個 `starlette.status` 以 `fastapi.status` 形式提供,純粹是為了讓你(開發者)方便。但它直接來自 Starlette。
    
    ///
    
    ## 變更預設值 { #changing-the-default }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 3.7K bytes
    - Click Count (0)
  6. docs/zh/docs/tutorial/response-status-code.md

    这只是一种快捷方式,具有相同的数字代码,但它可以使用编辑器的自动补全功能:
    
    <img src="/img/tutorial/response-status-code/image02.png">
    
    /// note | 技术细节
    
    也可以使用 `from starlette import status`。
    
    为了让开发者更方便,**FastAPI** 提供了与 `starlette.status` 完全相同的 `fastapi.status`。但它直接来自于 Starlette。
    
    ///
    
    ## 更改默认状态码 { #changing-the-default }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 3.6K bytes
    - Click Count (0)
  7. docs/ko/docs/tutorial/response-status-code.md

    <img src="/img/tutorial/response-status-code/image02.png">
    
    /// note | 기술 세부사항
    
    `from starlette import status` 역시 사용할 수 있습니다.
    
    **FastAPI**는 개발자인 여러분의 편의를 위해 `fastapi.status` 와 동일한 `starlette.status` 도 제공합니다. 하지만 이것은 Starlette로부터 직접 제공됩니다.
    
    ///
    
    ## 기본값 변경 { #changing-the-default }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 4.7K bytes
    - Click Count (0)
  8. docs/ko/docs/advanced/response-change-status-code.md

    # 응답 - 상태 코드 변경 { #response-change-status-code }
    
    기본 [응답 상태 코드 설정](../tutorial/response-status-code.md)이 가능하다는 걸 이미 알고 계실 겁니다.
    
    하지만 경우에 따라 기본 설정과 다른 상태 코드를 반환해야 할 때가 있습니다.
    
    ## 사용 예 { #use-case }
    
    예를 들어 기본적으로 HTTP 상태 코드 "OK" `200`을 반환하고 싶다고 가정해 봅시다.
    
    하지만 데이터가 존재하지 않으면 이를 새로 생성하고, HTTP 상태 코드 "CREATED" `201`을 반환하고자 할 때가 있을 수 있습니다.
    
    하지만 여전히 `response_model`을 사용하여 반환하는 데이터를 필터링하고 변환할 수 있기를 원합니다.
    
    이런 경우에는 `Response` 파라미터를 사용할 수 있습니다.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 1.8K bytes
    - Click Count (0)
  9. docs/en/docs/how-to/authentication-error-status-code.md

    Before FastAPI version `0.122.0`, when the integrated security utilities returned an error to the client after a failed authentication, they used the HTTP status code `403 Forbidden`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 1.2K bytes
    - Click Count (0)
  10. docs/uk/docs/advanced/response-change-status-code.md

    # Відповідь - зміна коду статусу { #response-change-status-code }
    
    Ймовірно, ви вже читали, що можна встановити типовий [код статусу відповіді](../tutorial/response-status-code.md).
    
    Але інколи потрібно повернути інший код статусу, ніж типовий.
    
    ## Випадок використання { #use-case }
    
    Наприклад, уявімо, що ви хочете за замовчуванням повертати код статусу HTTP «OK» `200`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 2.6K bytes
    - Click Count (0)
Back to Top