Added finish() to JSON response Fixed support for non BASIC Auth error