Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 461 - 470 of 4,066 for mode (0.03 seconds)

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

    # 响应 - 更改状态码
    
    你可能之前已经了解到,你可以设置默认的[响应状态码](../tutorial/response-status-code.md){.internal-link target=_blank}。
    
    但在某些情况下,你需要返回一个不同于默认值的状态码。
    
    ## 使用场景
    
    例如,假设你想默认返回一个HTTP状态码为“OK”`200`。
    
    但如果数据不存在,你想创建它,并返回一个HTTP状态码为“CREATED”`201`。
    
    但你仍然希望能够使用`response_model`过滤和转换你返回的数据。
    
    对于这些情况,你可以使用一个`Response`参数。
    
    ## 使用 `Response` 参数
    
    你可以在你的*路径操作函数*中声明一个`Response`类型的参数(就像你可以为cookies和头部做的那样)。
    
    然后你可以在这个*临时*响应对象中设置`status_code`。
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 1.4K bytes
    - Click Count (0)
  2. compat/maven-model-builder/src/main/resources/META-INF/services/org.apache.maven.model.root.RootLocator

    org.apache.maven.model.root.DefaultRootLocator...
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 47 bytes
    - Click Count (0)
  3. api/go1.2.txt

    pkg syscall (freebsd-386-cgo), type Stat_t struct, Ino uint32
    pkg syscall (freebsd-386-cgo), type Stat_t struct, Lspare int32
    pkg syscall (freebsd-386-cgo), type Stat_t struct, Mode uint16
    pkg syscall (freebsd-386-cgo), type Stat_t struct, Mtimespec Timespec
    pkg syscall (freebsd-386-cgo), type Stat_t struct, Nlink uint16
    pkg syscall (freebsd-386-cgo), type Stat_t struct, Pad_cgo_0 [8]uint8
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Fri Oct 18 04:36:59 GMT 2013
    - 1.9M bytes
    - Click Count (1)
  4. docs/metrics/prometheus/grafana/replication/grafana-replication-node.png

    grafana-replication-node.png...
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Thu Mar 28 17:15:39 GMT 2024
    - 229.7K bytes
    - Click Count (0)
  5. .github/workflows/mint/nginx-1-node.conf

    Harshavardhana <******@****.***> 1680298690 -0700
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Mar 31 21:38:10 GMT 2023
    - 2.8K bytes
    - Click Count (1)
  6. docs/pt/docs/how-to/authentication-error-status-code.md

    Mas, se por algum motivo seus clientes dependem do comportamento antigo, você pode voltar a ele sobrescrevendo o método `make_not_authenticated_error` nas suas classes de segurança.
    
    Por exemplo, você pode criar uma subclasse de `HTTPBearer` que retorne um erro `403 Forbidden` em vez do erro padrão `401 Unauthorized`:
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 19:59:04 GMT 2025
    - 1.3K bytes
    - Click Count (0)
  7. .github/workflows/mint/nginx-4-node.conf

    Harshavardhana <******@****.***> 1715791949 -0700
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Wed May 15 16:52:29 GMT 2024
    - 3.1K bytes
    - Click Count (0)
  8. .github/workflows/mint/nginx-8-node.conf

    Harshavardhana <******@****.***> 1715791949 -0700
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Wed May 15 16:52:29 GMT 2024
    - 3.4K bytes
    - Click Count (0)
  9. docs/es/docs/how-to/authentication-error-status-code.md

    Sebastián Ramírez <******@****.***> 1765901795 -0800
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 16 16:16:35 GMT 2025
    - 1.3K bytes
    - Click Count (0)
  10. docs/ru/docs/how-to/authentication-error-status-code.md

    Motov Yurii <******@****.***> 1765488303 +0100
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Thu Dec 11 21:25:03 GMT 2025
    - 1.8K bytes
    - Click Count (0)
Back to Top