return 400 for unknown json API call
Merge pull request #3 from pascalchevrel/api

return 400 for unknown json API call