Security

A controller accepts a valid access token for inventory reads but returns HTTP 403 for configuration updates because the token lacks write permission. What does the response indicate?

Show the answer

Correct answerC. The authenticated request lacks authorization.

AWhy not this: The token is explicitly valid; expired credentials normally result in HTTP 401.

BWhy not this: A missing resource normally produces HTTP 404, not the stated permission-based refusal.

CWhy this is right: The token is valid, but its permissions do not authorize configuration changes.

DWhy not this: Rate-limit enforcement normally produces HTTP 429, not a refusal caused by missing write permission.

HTTP 403 Forbidden indicates that the server refuses the operation; here, the authenticated caller lacks write permission. An expired token would normally produce HTTP 401 Unauthorized rather than this permission-based refusal.