Detecting 404 Error

(Charper) #1

Hi, I'm working with the api to load models via jQuery. How can I detect if a url sent to client.init returns 404? The client.init error function never fires, even if it is passed a bad url. I could always check the url outside of the sketchfab api, but if that's the case in what situations does the error function fire?

Also, in the future Sketchfab might include a complete function in the client.init options which fires regardless of success or error.



This is not possible to detect a 404 or deleted model page at the moment but we're working on a fix. Sorry about that.