Fixed routing problem. Changed http status response when no data found.