Skip to content

streamFile with custom HTTP code #6899

Closed
@taqiyasyaml

Description

@taqiyasyaml

Related area

WebServer

Hardware specification

ESP32-WROOM-32 (DevKit V1)

Is your feature request related to a problem?

I'm having a problem using onNotFound function. I want to serve a template according to an existing file on SPIFFS. But only HTTP code 200 is available instead of 404.

Describe the solution you'd like

I suggest to add HTTP code parameter to the streamFile or _streamFileCore functions

Describe alternatives you've considered

No response

Additional context

No response

I have checked existing list of Feature requests and the Contribution Guide

  • I confirm I have checked existing list of Feature requests and Contribution Guide.

Metadata

Metadata

Assignees

Labels

Area: BT&WifiBT & Wifi related issuesStatus: SolvedThe issue has been resolved and requires no further action.Type: Feature requestFeature request for Arduino ESP32

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions