Skip to content

Commit

Permalink
fix(response): correct status 416
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainLanz committed Feb 22, 2024
1 parent a17c106 commit 5ef57d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1381,7 +1381,7 @@ export class Response extends Macroable {
* Shorthand method to finish request with "416" status code
*/
requestedRangeNotSatisfiable(body?: any, generateEtag?: boolean): void {
this.status(ResponseStatus.RequestHeaderFieldsTooLarge)
this.status(ResponseStatus.RangeNotSatisfiable)
return this.send(body, generateEtag)
}

Expand Down

0 comments on commit 5ef57d5

Please sign in to comment.