Added proper "not found" and "service unavailable" http status codes on failures.