diff --git a/docs/api.md b/docs/api.md index 435cbb85..c93eb0c9 100644 --- a/docs/api.md +++ b/docs/api.md @@ -2628,6 +2628,8 @@ If request gets a 'redirect' response, the request is successfully finished with - `accessdenied` - Permission to access a resource, other than the network, was denied - `addressunreachable` - The IP address is unreachable. This usually means that there is no route to the specified host or network. + - `blockedbyclient` - The client chose to block the request. + - `blockedbyresponse` - The request failed because the response was delivered along with requirements which are not met ('X-Frame-Options' and 'Content-Security-Policy' ancestor checks, for instance). - `connectionaborted` - A connection timed out as a result of not receiving an ACK for data sent. - `connectionclosed` - A connection was closed (corresponding to a TCP FIN). - `connectionfailed` - A connection attempt failed. diff --git a/lib/NetworkManager.js b/lib/NetworkManager.js index af850aca..ddbfcc98 100644 --- a/lib/NetworkManager.js +++ b/lib/NetworkManager.js @@ -506,6 +506,8 @@ const errorReasons = { 'aborted': 'Aborted', 'accessdenied': 'AccessDenied', 'addressunreachable': 'AddressUnreachable', + 'blockedbyclient': 'BlockedByClient', + 'blockedbyresponse': 'BlockedByResponse', 'connectionaborted': 'ConnectionAborted', 'connectionclosed': 'ConnectionClosed', 'connectionfailed': 'ConnectionFailed',