Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP 401 is missing #18

Closed
settermjd opened this issue Sep 22, 2022 · 3 comments
Closed

HTTP 401 is missing #18

settermjd opened this issue Sep 22, 2022 · 3 comments
Assignees
Labels

Comments

@settermjd
Copy link

Hi folks, in https://github.com/teapot-php/status-code/blob/master/src/RFC/RFC7231.php, any reason why HTTP 401 is missing?

@localheinz
Copy link
Contributor

@settermjd

It is defined in

https://github.com/teapot-php/status-code/blob/v1.1.2/src/RFC/RFC2616.php#L448

and

https://github.com/teapot-php/status-code/blob/v1.1.2/src/RFC/RFC7235.php#L71

The constant is also accessible via Teapot\StatusCode\Http::UNAUTHORIZED.

<?php

use Teapot\StatusCode;

require_once __DIR__ . '/vendor/autoload.php';

var_dump(StatusCode\Http::UNAUTHORIZED); // int(401)

Do you think it should be defined in a different interface?

@localheinz localheinz self-assigned this Sep 22, 2022
@settermjd
Copy link
Author

Thanks @localheinz. I didn't look hard enough.

@localheinz
Copy link
Contributor

Thank you, @settermjd!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants