In java (Android), is there a standard exception I should throw to signal a 401 Unauthorized response from a server?
Asked
Active
Viewed 1,289 times
3
-
This totally depends on the network tools/library you're using. – shkschneider Jan 09 '15 at 13:41
-
1Thanks, I was wondering if there was an accepted standard thing, maybe in org.apache.http or such. – ticofab Jan 09 '15 at 13:55
-
Totally depends on how the HTTP Protocol (which defines error code 401 as being "unauthorized") is handled... Your question cannot be asked without more specific details. – shkschneider Jan 09 '15 at 13:56