api/api_test: use numeric net/http status code constants