Added 404 handler to API