79492634

Date: 2025-03-07 14:37:35
Score: 0.5
Natty:
Report link

Not sure I agree with the accepted answer's comment "what it doesn't depend on is 'feature flag'". The variations mentioned do make sense, regarding 404 -- not able to find or have access to the resource, 451 -- legal reasons. But, in the case of feature flags, a strong case is made by the RFC itself that a 403 is the correct candidate:

https://www.rfc-editor.org/rfc/rfc7231#section-6.5.3

However, a request might be forbidden for reasons
   unrelated to the credentials.

Feature flags are exactly that -- a way to remove authorization for an operation or resource.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Alf