/    Sign up×
Community /Pin to ProfileBookmark

Just curious…

I’m getting a status number of 12152 back from an ajax call.
Obviously there is an error in my php script, but WTF is 12152?

Thanks.

to post a comment
JavaScript

6 Comments(s)

Copy linkTweet thisAlerts:
@Banana_AnandaJul 11.2007 — It just doesn't like your zip code.

..but seriously:

http://msdn2.microsoft.com/en-US/library/aa383770.aspx

ERROR_WINHTTP_INVALID_SERVER_RESPONSE

12152

The server response cannot be parsed.
Copy linkTweet thisAlerts:
@CrazyMerlinauthorJul 11.2007 — thanks!

got it working now.
Copy linkTweet thisAlerts:
@UltimaterJul 12.2007 — WTF... 12152 is new to me too. xmlhttp.status is giving you that?

http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

I thought it only went up to 5xx..

1xx Informational

2xx Successful

3xx Redirection

4xx Client Error

5xx Server Error
Copy linkTweet thisAlerts:
@CrazyMerlinauthorJul 12.2007 — OMFG!! You mean you didn't know something, Ulti?

hahahahaha!

//erlin!
Copy linkTweet thisAlerts:
@UltimaterJul 12.2007 — lmfao
Copy linkTweet thisAlerts:
@A1ien51Jul 12.2007 — They are windows specific status codes

There are a bunch of them in the 12XXX range and come up a bunch.

What you should do is build something that looks at the 12XXX range and reissues a retry attempt for that request. This actually comes up a lot. Last company I worked for, I logged all of my Ajax failures and Errors to the server and those codes came up a lot.

Eric
×

Success!

Help @CrazyMerlin spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...