Having a unauthorized error responses in the centralized OpenAPI components library helps make error responses reusable across API requests
OpenAPI Components Responses Unauthorized Error
Message: Components MUST have a unauthorized response.
Policies
Problem Details for HTTP APIs
Requiring that errors use the Problem Details for HTTP APIs standard.