fix a bug when a invalid post is made on api
Merge branch 'master' of github.com:globocom/database-as-a-service