Skip to content

Commit a77db63

Browse files
Add docs from gofiber/fiber@fc803ec
1 parent f1542d7 commit a77db63

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/core/api/ctx.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1216,6 +1216,9 @@ Returns a struct containing the type and a slice of ranges.
12161216
Only the canonical `bytes` unit is recognized and any optional
12171217
whitespace around range specifiers will be ignored, as specified
12181218
in RFC 9110.
1219+
If none of the requested ranges are satisfiable, the method automatically
1220+
sets the HTTP status code to **416 Range Not Satisfiable** and populates the
1221+
`Content-Range` header with the current representation size.
12191222

12201223
```go title="Signature"
12211224
func (c fiber.Ctx) Range(size int) (Range, error)

0 commit comments

Comments
 (0)