Skip to content

bug: fluent can't return 429 and other some other HTTP error codes #162

Description

@ClemDoum

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions