Tendrl / api

Tendrl API
GNU Lesser General Public License v2.1
16 stars 16 forks source link

Non-existent Job ID should return 404 #381

Closed shirshendu closed 6 years ago

shirshendu commented 6 years ago
curl -XGET -H "Authorization: Bearer access_token" http://127.0.0.1/api/1.0/jobs/invalid # -- returns 200 OK with `{}`
curl -XGET -H "Authorization: Bearer access_token" http://127.0.0.1/api/1.0/jobs/invalid/messages #--  returns 500 with error JSON

Both these API calls should return 404.