WordsAPI

GRATIS CON POSSIBILITÀ DI UPGRADE
Verified
Da dpventures | Aggiornamento לפני 22 ימים | Data
Popolarità

9.9 / 10

Latenza

179ms

Livello di servizio

100%

Health Check

N/A

Torna a tutte le discussioni

Error page

Rapid account: Jandark
jandark
vor 9 Jahren

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 vor 9 Jahren

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 vor 9 Jahren

An error page, or a 404?

Partecipa alla discussione - aggiungi un commento di seguito:

Accedi/Iscriviti per pubblicare nuovi commenti