Skip to content

Add code -> phrase mapping #245

Description

@LeTraceurSnork

Please add some int code -> string phrase mapper so we could use smth like

$some_code = \Teapot\StatusCode\Http::HTTP_NOT_FOUND;

echo \Teapot\StatusCode\Http::getReasonPhrase($some_code); // Not Found
echo \Teapot\StatusCode\Http::getReasonPhrase(404); // Not Found

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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