added a json response for 404, added a default api page