browser rendering - rest api (server status code is missing on new api)

it returns success true even if server status code is non 200 (for both 4XX and 5XX) any plan to implement a proper error handling hints for rest api users too? need more keys than success and result in here ๐Ÿ˜ฌ
No description
3 Replies
Erisa
Erisaโ€ข2mo ago
Which api endpoint is this? The success field comes from the Cloudflare API service and indicates that service didn't error so it's technically correct since it did succeed in making the request and retrieving some html, but I'm surprised it doesn't expose the status code
yigit
yigitOPโ€ข2mo ago
it is the new REST API of browser rendering: https://developers.cloudflare.com/browser-rendering/rest-api/
Cloudflare Docs
REST API ยท Browser Rendering docs
The REST API is a RESTful interface that provides endpoints for common browser actions such as capturing screenshots, extracting HTML content, generating PDFs, and more. The following are the available options:
yigit
yigitOPโ€ข2mo ago
yeaahh im suprised too, will reallllly appreciate if someone want to have a look ๐Ÿ‘€

Did you find this page helpful?