Open
Description
Steps to reproduce:
WebServer().configure(routes -> routes.get("/", new Payload(429))).start(8080);
When curling http://localhost:8080
, the status code will be 200
.
This is because SimpleResponse.setStatus
uses Status.getStatus(statusCode)
from SimpleHttpFramework
under the hood and the returns 200
when the statusCode
is not in the Status
enum.
429
is missing from this enum.
Metadata
Metadata
Assignees
Labels
No labels