When a request is sent to an endpoint that requires a tenant ID without including the tenant ID, the API returns a 500 Internal Server Error instead of a proper client validation error (such as 400 Bad Request or 401/403 depending on the expected behavior). The system should validate the request input and return an appropriate error response indicating that the tenant ID is missing.
When a request is sent to an endpoint that requires a tenant ID without including the tenant ID, the API returns a 500 Internal Server Error instead of a proper client validation error (such as 400 Bad Request or 401/403 depending on the expected behavior). The system should validate the request input and return an appropriate error response indicating that the tenant ID is missing.