return json errors instead of raising werkzeug exceptions
handle NotFound properly
Merge pull request #54 from elasticsales/respect-accept

Proper formatting of error responses