/*! For license information please see aab7eac4.abf00878.js.LICENSE.txt */ "use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[18573],{47944:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>i,contentTitle:()=>p,default:()=>l,frontMatter:()=>o,metadata:()=>a,toc:()=>c});var s=n(85893),r=n(11151);const o={sidebar_label:"HTTPResponse.ok"},p="HTTPResponse.ok() method",a={id:"api/puppeteer.httpresponse.ok",title:"HTTPResponse.ok() method",description:"True if the response was successful (status in the range 200-299).",source:"@site/versioned_docs/version-22.8.2/api/puppeteer.httpresponse.ok.md",sourceDirName:"api",slug:"/api/puppeteer.httpresponse.ok",permalink:"/api/puppeteer.httpresponse.ok",draft:!1,unlisted:!1,tags:[],version:"22.8.2",frontMatter:{sidebar_label:"HTTPResponse.ok"},sidebar:"api",previous:{title:"HTTPResponse.json",permalink:"/api/puppeteer.httpresponse.json"},next:{title:"HTTPResponse.remoteAddress",permalink:"/api/puppeteer.httpresponse.remoteaddress"}},i={},c=[{value:"Signature:",id:"signature",level:4}];function u(e){const t={code:"code",h1:"h1",h4:"h4",p:"p",pre:"pre",strong:"strong",...(0,r.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.h1,{id:"httpresponseok-method",children:"HTTPResponse.ok() method"}),"\n",(0,s.jsx)(t.p,{children:"True if the response was successful (status in the range 200-299)."}),"\n",(0,s.jsx)(t.h4,{id:"signature",children:"Signature:"}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-typescript",children:"class HTTPResponse {\n ok(): boolean;\n}\n"})}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.strong,{children:"Returns:"})}),"\n",(0,s.jsx)(t.p,{children:"boolean"})]})}function l(e={}){const{wrapper:t}={...(0,r.a)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(u,{...e})}):u(e)}},75251:(e,t,n)=>{var s=n(67294),r=Symbol.for("react.element"),o=Symbol.for("react.fragment"),p=Object.prototype.hasOwnProperty,a=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var s,o={},c=null,u=null;for(s in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)p.call(t,s)&&!i.hasOwnProperty(s)&&(o[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps)void 0===o[s]&&(o[s]=t[s]);return{$$typeof:r,type:e,key:c,ref:u,props:o,_owner:a.current}}t.Fragment=o,t.jsx=c,t.jsxs=c},85893:(e,t,n)=>{e.exports=n(75251)},11151:(e,t,n)=>{n.d(t,{Z:()=>a,a:()=>p});var s=n(67294);const r={},o=s.createContext(r);function p(e){const t=s.useContext(o);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:p(e.components),s.createElement(o.Provider,{value:t},e.children)}}}]);