WordsAPI

免费增值
Verified
通过 dpventures | 已更新 22 दिन पहले | Data
人气

9.9 / 10

延迟

179ms

服务等级

100%

Health Check

N/A

返回所有讨论

Error page

Rapid account: Jandark
jandark
9 वर्ष पहले

Api returns error page for the words couldn’t found.

<title>www.wordsapi.com | 404 - Page Cannot Be Found</title>

Rapid account: Jandark
jandark Commented 9 वर्ष पहले

Both of them. Http 404 response with an html error page. Is is mashape service problem I guess but there should be more appropriate way.
How will I distinguish service response ? It is a service call, not a web page that I can show end user…

string requestUrl = string.Format(“https://wordsapiv1.p.mashape.com/words/{0}”, word);
Task<unirest_net.http.HttpResponse<WordApiResponse>> response = unirest_net.http.Unirest.get(requestUrl)
.header(“X-Mashape-Key”, “-----”)
.header(“Accept”, “application/json”)
.asJsonAsync<WordApiResponse>();

          //???
        if (response.Status == TaskStatus.Faulted || response.Result == null)
        {
            return null;

        }
Rapid account: Wordsapi
wordsapi Commented 9 वर्ष पहले

An error page, or a 404?

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论