Returns HTML on failure instead of 500
Removes debug logging