updated autocomplete api
fixed autocomplete api status codes