Return 500 error if verification fails

Fixes #19