Improved error reporting, and added API (v1) on static site.