Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Throw 401 Exception

Hi,

I am developing a custom connector and I'm making a TestConnection, so I would like to know if I can throw a 401 exception like Web.Contents does, for re-prompt credentials.

The API always returns a 200 and the error goes into the body, is there a way to achieve a re-prompt or throw 401 exception?

 

Thanks in advance

0 REPLIES 0

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.