C#C
C#4y ago
İrşat

HttpRequestException Error Handling

It says the target actively refused it. It's because I didn't launch my API. Therefore it cannot request something and gives me this error.

If we put try catch aside for a minute, is there a nice way to just skip these codes if it refuses? I will send empty lists to the client and just say "Sorry, we are having some technical issues." or something.
Was this page helpful?