We’re migrating to the GraphQL API and have noticed that the GraphQL endpoint for retrieving store data returns a different error code than the REST API endpoint.
Specifically, while the REST API returns a 404 or 403 error for a store, GraphQL instead returns a 401 error code for the same store.
indeed, we have found some closed stores for which the REST API returns a 404 error code (expected) and the GraphQL API returns a 401 error code. This way, it is not possible to know if the store keeps closed or not.