Skip to main content
1-Visitor
July 12, 2017
Question

Get HTTP error code

  • July 12, 2017
  • 1 reply
  • 1989 views

Hi,

Is there way to get HTTP return code after calling an external API with for instance Resources["ContentLoaderFunctions"].GetJSON(params) ?

Regards

Stéphane

1 reply

5-Regular Member
July 12, 2017

Hello, Stephane.

Are you talking about using the RESTful API in the manner described in this article? I don't see any place where that directly returns the HTTP error code.

Let me know if this is like your use case, or if you mean something different.

-- Craig A.

sloison1-VisitorAuthor
1-Visitor
July 19, 2017

Hi Craig,

It is exactly the point.

The call return a 4XX http error code and I do see any way to get it.

Regards

Stéphane