Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 571 Bytes

readme.md

File metadata and controls

18 lines (12 loc) · 571 Bytes

Web Requests

Catching Web.Contents Errors using and ManualStatusHandling

using-web.contents-catching-datasource-errors

Catch uncatchable Datasource errors - main query.pq

try Web.Contents( "https://httpbin.org", [
    RelativePath =  "/status/codes/418",
    ManualStatusHandling = {401, 402, 404} & {405..500}
    ] )
catch (e) =>
    "Error, but we caught it" meta e