- Sort Score
- Num 10 results
- Language All
Results 131 - 140 of 578 for denial (0.15 seconds)
-
docs/zh/docs/tutorial/handling-errors.md
{ "item": "The Foo Wrestlers" } ``` 但如果客户端请求 `http://example.com/items/bar`(不存在的 `item_id` `"bar"`),则会接收到 HTTP 状态码 404(“未找到”错误)及如下 JSON 响应结果: ```JSON { "detail": "Item not found" } ``` /// tip | 提示 触发 `HTTPException` 时,可以用参数 `detail` 传递任何能转换为 JSON 的值,不仅限于 `str`。 还支持传递 `dict`、`list` 等数据结构。 **FastAPI** 能自动处理这些数据,并将之转换为 JSON。 /// ## 添加自定义响应头 { #add-custom-headers }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 8.2K bytes - Click Count (0) -
Vagrantfile
ubuntu_docker config end end 'debian-8'.tap do |box| config.vm.define box, define_opts do |config| config.vm.box = 'elastic/debian-8-x86_64' deb_common config, box, extra: <<-SHELL # this sometimes gets a bad ip, and doesn't appear to be needed rm -f /etc/apt/sources.list.d/http_debian_net_debian.list SHELL end end 'debian-9'.tap do |box|Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Wed Feb 17 17:41:23 GMT 2021 - 14.9K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/opensearch/client/SearchEngineClientException.java
* * @param message the detail message explaining the exception * @param cause the underlying cause of the exception */ public SearchEngineClientException(final String message, final Throwable cause) { super(message, cause); } /** * Constructs a new SearchEngineClientException with the specified message. * * @param message the detail message explaining the exception */Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 1.6K bytes - Click Count (0) -
tests/test_put_no_body.py
"title": "HTTPValidationError", "type": "object", "properties": { "detail": { "title": "Detail", "type": "array", "items": { "$ref": "#/components/schemas/ValidationError"
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 3.8K bytes - Click Count (0) -
tests/test_security_oauth2_authorization_code_bearer.py
assert response.status_code == 401, response.text assert response.json() == {"detail": "Not authenticated"} def test_incorrect_token(): response = client.get("/items", headers={"Authorization": "Non-existent testtoken"}) assert response.status_code == 401, response.text assert response.json() == {"detail": "Not authenticated"} def test_token():Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 2.7K bytes - Click Count (0) -
docs_src/security/tutorial004_an_py310.py
return encoded_jwt async def get_current_user(token: Annotated[str, Depends(oauth2_scheme)]): credentials_exception = HTTPException( status_code=status.HTTP_401_UNAUTHORIZED, detail="Could not validate credentials", headers={"WWW-Authenticate": "Bearer"}, ) try: payload = jwt.decode(token, SECRET_KEY, algorithms=[ALGORITHM]) username = payload.get("sub")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 18:10:35 GMT 2026 - 4.2K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/ModelUpgradeStrategy.java
editor.setTextContent(modelVersionElement, targetModelVersion); context.detail("Updated modelVersion to " + targetModelVersion); } else { // Create new modelVersion element if it doesn't exist DomUtils.insertContentElement(root, MODEL_VERSION, targetModelVersion); context.detail("Added modelVersion " + targetModelVersion); }
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 16.6K bytes - Click Count (0) -
.ci/jobs.t/elastic+elasticsearch+pull-request+packaging-tests-unix.yml
axes: - axis: type: label-expression name: os values: - centos-7-packaging - centos-8-packaging - debian-9-packaging - debian-10-packaging - debian-11-packaging - opensuse-15-1-packaging - oraclelinux-7-packaging - oraclelinux-8-packaging - sles-12-packagingCreated: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Sep 14 17:35:45 GMT 2021 - 2.2K bytes - Click Count (0) -
tests/test_dependency_after_yield_raise.py
class CustomError(Exception): pass def catching_dep() -> Any: try: yield "s" except CustomError as err: raise HTTPException(status_code=418, detail="Session error") from err def broken_dep() -> Any: yield "s" raise ValueError("Broken after yield") app = FastAPI() @app.get("/catching")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 1.7K bytes - Click Count (0) -
tests/test_dependency_yield_except_httpexception.py
@app.put("/invalid-user/{user_id}") def put_invalid_user( user_id: str, name: str = Body(), db: dict = Depends(get_database) ): db[user_id] = name raise HTTPException(status_code=400, detail="Invalid user") @app.put("/user/{user_id}") def put_user(user_id: str, name: str = Body(), db: dict = Depends(get_database)): db[user_id] = name return {"message": "OK"}
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Mon Sep 29 03:29:38 GMT 2025 - 1.9K bytes - Click Count (0)