[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Source code for google.appengine.api.urlfetch_errors
#!/usr/bin/env python## Copyright 2007 Google Inc.## Licensed under the Apache License, Version 2.0 (the "License");# you may not use this file except in compliance with the License.# You may obtain a copy of the License at## http://www.apache.org/licenses/LICENSE-2.0## Unless required by applicable law or agreed to in writing, software# distributed under the License is distributed on an "AS IS" BASIS,# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.# See the License for the specific language governing permissions and# limitations under the License.#"""Errors used in the urlfetch API."""
[docs]classDownloadError(Error):"""The URL could not be retrieved. This exception is only raised when we cannot contact the server. HTTP errors (such as 404) are returned in the `status_code` field in the return value of `fetch`, and no exception is raised. """
[docs]classMalformedReplyError(DownloadError):"""The target server returned an invalid HTTP response. Responses are invalid if they contain no headers, malformed or incomplete headers, or have content missing. """
[docs]classTooManyRedirectsError(DownloadError):"""`follow_redirects` was set to True, and the redirect limit was hit."""
[docs]classConnectionClosedError(DownloadError):"""The target server prematurely closed the connection."""
[docs]classInvalidURLError(Error):"""The URL given was empty or invalid. Only HTTP and HTTPS URLs are allowed. The maximum URL length is 2048 characters. The login and password portion is not allowed. In deployed applications, only ports 80 and 443 for HTTP and HTTPS respectively are allowed. """
[docs]classPayloadTooLargeError(InvalidURLError):"""The request payload exceeds the limit."""
[docs]classDNSLookupFailedError(DownloadError):"""The DNS lookup for a URL failed."""
[docs]classDeadlineExceededError(DownloadError):"""The URL was not fetched because the deadline was exceeded. This can occur with either the client-supplied `deadline`, or the system default if the client does not supply a `deadline` parameter. """
[docs]classResponseTooLargeError(Error):"""The response was too large and was truncated."""def__init__(self,response):self.response=response
[docs]classInvalidMethodError(Error):"""An invalid value was provided for `method`."""
[docs]classSSLCertificateError(Error):"""An invalid server certificate was presented."""
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]