Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 9 of 9 for 204 (0.04 seconds)

  1. tests/test_response_code_no_body.py

        title: str
    
    
    class JsonApiError(BaseModel):
        errors: list[Error]
    
    
    @app.get(
        "/a",
        status_code=204,
        response_class=JsonApiResponse,
        responses={500: {"description": "Error", "model": JsonApiError}},
    )
    async def a():
        pass
    
    
    @app.get("/b", responses={204: {"description": "No Content"}})
    async def b():
        pass  # pragma: no cover
    
    
    client = TestClient(app)
    
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 3.2K bytes
    - Click Count (0)
  2. docs/es/docs/tutorial/response-status-code.md

        * `200` es el código de estado por defecto, lo que significa que todo estaba "OK".
        * Otro ejemplo sería `201`, "Created". Comúnmente se usa después de crear un nuevo registro en la base de datos.
        * Un caso especial es `204`, "No Content". Este response se usa cuando no hay contenido para devolver al cliente, por lo tanto, el response no debe tener un body.
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  3. docs/de/docs/tutorial/response-status-code.md

        * Ein weiteres Beispiel wäre `201`, „Created“ („Erzeugt“). Dieser wird üblicherweise verwendet, nachdem ein neuer Datensatz in der Datenbank erstellt wurde.
        * Ein spezieller Fall ist `204`, „No Content“ („Kein Inhalt“). Diese Response wird verwendet, wenn es keinen Inhalt gibt, der an den Client zurückgeschickt werden soll, und diese Response darf daher keinen Body haben.
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 4.9K bytes
    - Click Count (0)
  4. docs/ru/docs/tutorial/response-status-code.md

        * `200` – это код статуса ответа по умолчанию, который означает, что все прошло "OK".
        * Другим примером может быть статус `201`, "Created". Он обычно используется после создания новой записи в базе данных.
        * Особый случай – `204`, "No Content". Этот статус ответа используется, когда нет содержимого для возврата клиенту, и поэтому ответ не должен иметь тела.
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  5. docs/en/docs/tutorial/response-status-code.md

        * `200` is the default status code, which means everything was "OK".
        * Another example would be `201`, "Created". It is commonly used after creating a new record in the database.
        * A special case is `204`, "No Content".  This response is used when there is no content to return to the client, and so the response must not have a body.
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 4K bytes
    - Click Count (0)
  6. docs/pt/docs/tutorial/response-status-code.md

        * `200` é o código de status padrão, o que significa que tudo estava "OK".
        * Outro exemplo seria `201`, "Criado". É comumente usado após a criação de um novo registro no banco de dados.
        * Um caso especial é `204`, "Sem Conteúdo". Essa resposta é usada quando não há conteúdo para retornar ao cliente e, portanto, a resposta não deve ter um corpo.
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  7. fastapi/routing.py

            class Item(BaseModel):
                name: str
                description: str | None = None
    
            app = FastAPI()
            router = APIRouter()
    
            @router.head("/items/", status_code=204)
            def get_items_headers(response: Response):
                response.headers["X-Cat-Dog"] = "Alone in the world"
    
            app.include_router(router)
            ```
            """
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 174.6K bytes
    - Click Count (0)
  8. fastapi/applications.py

            ## Example
    
            ```python
            from fastapi import FastAPI, Response
    
            app = FastAPI()
    
            @app.head("/items/", status_code=204)
            def get_items_headers(response: Response):
                response.headers["X-Cat-Dog"] = "Alone in the world"
            ```
            """
            return self.router.head(
                path,
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 176.3K bytes
    - Click Count (0)
  9. lib/fips140/v1.1.0-rc1.zip

    , r1<<13) return uint16(r1), r0 } // highBits implements HighBits from FIPS 204. func highBits(r ringElement, p parameters) [n]byte { var w [n]byte switch p.γ2 { case 32: for i := range n { w[i] = highBits32(fieldFromMontgomery(r[i])) } case 88: for i := range n { w[i] = highBits88(fieldFromMontgomery(r[i])) } default: panic("mldsa: internal error: unsupported γ2") } return w } // useHint implements UseHint from FIPS 204. // // It is not constant-time. func useHint(r ringElement, h [n]byte, p parameters)...
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Thu Dec 11 16:27:41 GMT 2025
    - 663K bytes
    - Click Count (0)
Back to Top