401 Unauthorized HTTP status code for JSON-reply login fails