Fixes format parameter
Improves error handling in html clients
Merge pull request #50 from nsendetzky/master

Improves error handling in html clients