fixed some endpoints to fail gracefully

fixes #25
Merge pull request #26 from agrc/consistent-responses

Fixed some endpoints to fail gracefully