Errors

Closes #439

With #588 applied this also means that the API starts producing useful responses when something goes splat.