koush / AndroidAsync

Asynchronous socket, http(s) (client+server) and websocket library for android. Based on nio, not threads.
Other
7.51k stars 1.56k forks source link

Add 401 and method to add more #712

Closed KaHa6uc closed 1 year ago

KaHa6uc commented 1 year ago

I was using Digest authentication and noticed that the AsyncHttpServerResponse returned HTTP/1.1 401 Unknown instead of Unauthorized. I added that code as well as a method to add custom codes should one need more.