Error handling
- If a service fails, it will return a 500
- If a resource is not found, it will return a 404 (e.g. for an unknown reader or an incorrect publication. See the sample 404 error for a reader not found:
- If a valid resource is given, but not owned or available to the OAuth service account, GCP will trigger an IAM error
Sample error
{
"Error": "Requested entity was not found."
}
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["Services return a 500 error code when they experience a failure."],["A 404 error code indicates a resource, like a reader or publication, was not found."],["When a valid resource isn't accessible to the OAuth service account due to permissions, a GCP IAM error is triggered."]]],[]]