add error codes for search route