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.
Steps to reproduce:
When curling
http://localhost:8080, the status code will be200.This is because
SimpleResponse.setStatususesStatus.getStatus(statusCode)fromSimpleHttpFrameworkunder the hood and the returns200when thestatusCodeis not in theStatusenum.429is missing from this enum.