3

In java (Android), is there a standard exception I should throw to signal a 401 Unauthorized response from a server?

ticofab
  • 7,551
  • 13
  • 49
  • 90
  • This totally depends on the network tools/library you're using. – shkschneider Jan 09 '15 at 13:41
  • 1
    Thanks, 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

1 Answers1

0

After a few years it seems that the response was 'no there isn't'.

ticofab
  • 7,551
  • 13
  • 49
  • 90