We've updated the authentication handling for the GET/sandboxes and
POST /realms/usages ODS API responses. The responses now return a 401
unauthorized status code with a structured error response for unauthenticated requests. This
change enhances security and aligns with standard HTTP practices.
How: Admins and developers should ensure that all API requests are properly authenticated to avoid receiving a 401 unauthorized status code. For unauthenticated requests, the API now returns a structured error response indicating the need for full authentication.
Previouw Response:
{
"kind": "SandboxList",
"code": 200,
"status": "Success"
}
Updated Response
{
"kind": "Status",
"code": 401,
"status": "Failure",
"error": {
"status": "Failure",
"message": "Full authentication is required to access this resource",
"reason": "Unauthorized"
}