- Sort Score
- Num 10 results
- Language All
Results 381 - 390 of 848 for round (0.01 seconds)
-
docs_src/app_testing/app_b_py310/test_main.py
def test_read_nonexistent_item(): response = client.get("/items/baz", headers={"X-Token": "coneofsilence"}) assert response.status_code == 404 assert response.json() == {"detail": "Item not found"} def test_create_item(): response = client.post( "/items/", headers={"X-Token": "coneofsilence"}, json={"id": "foobar", "title": "Foo Bar", "description": "The Foo Barters"}, )
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Mar 13 19:07:10 GMT 2024 - 1.8K bytes - Click Count (0) -
buildscripts/resolve-right-versions.sh
set -x set -e WORK_DIR="$PWD/.verify-$RANDOM" MINIO_CONFIG_DIR="$WORK_DIR/.minio" MINIO=("$PWD/minio" --config-dir "$MINIO_CONFIG_DIR" server) if [ ! -x "$PWD/minio" ]; then echo "minio executable binary not found in current directory" exit 1 fi function start_minio_5drive() { start_port=$1 export MINIO_ROOT_USER=minio export MINIO_ROOT_PASSWORD=minio123
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Wed Aug 16 14:51:33 GMT 2023 - 1.5K bytes - Click Count (0) -
tests/test_tutorial/test_handling_errors/test_tutorial002.py
response = client.get("/items-header/bar") assert response.status_code == 404, response.text assert response.headers.get("x-error") == "There goes my error" assert response.json() == {"detail": "Item not found"} def test_openapi_schema(): response = client.get("/openapi.json") assert response.status_code == 200, response.text assert response.json() == { "openapi": "3.1.0",
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 3.3K bytes - Click Count (0) -
docs/uk/docs/tutorial/handling-errors.md
Це схоже на HTTP статус-коди 200 (від 200 до 299). Ці "200" статус-коди означають, що запит пройшов успішно. Статус-коди в діапазоні 400 означають, що сталася помилка з боку клієнта. Пам'ятаєте всі ці помилки **404 Not Found** (і жарти про них)? ## Використання `HTTPException` Щоб повернути HTTP-відповіді з помилками клієнту, використовуйте `HTTPException`. ### Імпорт `HTTPException`
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Oct 11 17:48:49 GMT 2025 - 13.9K bytes - Click Count (0) -
apache-maven/src/assembly/maven/bin/mvn
if [ -n "$MAVEN_DEBUG_SCRIPT" ]; then echo "[DEBUG] Found jvm.config file at: $1" >&2 echo "[DEBUG] Running JvmConfigParser with Java: $JAVACMD" >&2 echo "[DEBUG] Parser arguments: $MAVEN_HOME/bin/JvmConfigParser.java $1 $MAVEN_PROJECTBASEDIR" >&2 fi # Verify Java is available "$JAVACMD" -version >/dev/null 2>&1 || { echo "Error: Java not found. Please set JAVA_HOME." >&2 return 1 }
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Dec 10 16:40:06 GMT 2025 - 9.2K bytes - Click Count (0) -
internal/config/dns/etcd_dns.go
"net" "sort" "strings" "time" "github.com/minio/minio-go/v7/pkg/set" clientv3 "go.etcd.io/etcd/client/v3" ) // ErrNoEntriesFound - Indicates no entries were found for the given key (directory) var ErrNoEntriesFound = errors.New("No entries found for this key") // ErrDomainMissing - Indicates domain is missing var ErrDomainMissing = errors.New("domain is missing") const etcdPathSeparator = "/"
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Tue Feb 18 16:25:55 GMT 2025 - 8K bytes - Click Count (0) -
internal/mountinfo/mountinfo_linux_test.go
} // Failure case where we detected successfully cross device mounts. { absPaths := []string{"/path/to/1"} if err = checkCrossDevice(absPaths, mountsPath); err == nil { t.Fatal("Expected to fail, but found success") } mp := []mountInfo{ {"/dev/2", "/path/to/1/2", "type2", []string{"flags"}, "2", "2"}, }Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Thu Jan 18 07:03:17 GMT 2024 - 7.3K bytes - Click Count (0) -
cmd/batch-expire.go
// actions accordingly. // nolint:gocritic if result.Item.IsLatest { var match BatchJobExpireFilter var found bool for _, rule := range r.Rules { if rule.Matches(result.Item, now) { match = rule found = true break } } if !found { continue } if prevObj.Name != result.Item.Name { // switch the object pushToExpire()Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Tue Apr 22 11:16:32 GMT 2025 - 23K bytes - Click Count (0) -
cmd/xl-storage-format-v2_gen.go
zb0001, bts, err = msgp.ReadUint8Bytes(bts) if err != nil { err = msgp.WrapError(err) return } (*z) = ChecksumAlgo(zb0001) } o = bts return } // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message func (z ChecksumAlgo) Msgsize() (s int) { s = msgp.Uint8Size return } // DecodeMsg implements msgp.Decodable
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 55.8K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/project/InvalidProjectVersionException.java
String projectId, String locationInPom, String offendingVersion, InvalidVersionSpecificationException cause) { return "Invalid version: " + offendingVersion + " found for: " + locationInPom + " in project: " + projectId + ". Reason: " + cause.getMessage(); } public String getOffendingVersion() { return offendingVersion; }Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 2.1K bytes - Click Count (0)