Synergex/HarmonyCore

GetToken Unauthorized()

shiblydangdang opened this issue · 5 comments

Hi

We a have the following code in the GetToken method.....

		if (response.ReturnValue == 0)
			begin
				;;Login failed, return 401 (unauthorized)
				mreturn Unauthorized()
			end

I want to be able to use ServiceUnavailable() instead of Unauthorized() but it's not available.

I've been able to use BadRequest().

If I hover over Unauthorized() or right-click and Go To Definition, it doesn't give me any info as to where this is defined.

Any ideas please?

Thanks

Thanks for the info Steve. I didn't explain it very well. I don't want to replace 401, I just want other options and couldn't work out where Unauthorized was defined.

Thanks Steve