PricingDocsAcademy
Bluesky ...
Fri, Dec 13, 8:46 AM

Does a response of 410 not count as an "Error" for Toddle API's "On Error" purposes?

  • /attachments/1302010148516266044/1302010148738301972/image.png

    Fisher

    1 month ago

    My workflow is attached.
    I have a Supabase edge function that returns a 410 error if the verification Token is expired. If I pass no token, I do get a redirect (toddle sees this as an error) However, the page does not redirect if the token is expired, but a look at the network logs shows I do get a 410 response back. I could change the error code, but I was just curious if this is normal behavior? Does a 4xx response not count as "error" for toddle's API?
    image.png
  • Andreas Møller

    1 month ago

    It should. Are yo sure you are getting a 410?
  • Fisher

    1 month ago

    🤦‍♂️ I just realized I was testing in my live site, not in the branch I'm working on. The branch with the 4xx redirect is working fine!

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code — but accessible to your entire team!

Try toddle — it's free!

© Copyright 2024 toddle. All rights reserved.