Password manager bug [http codes]

Hello, there’s are a bug with the password manager - when page returns 500 (http code 500), and then you’re directly changing tab address to another, the Password Manager recognizes that as a succesfull authorization, which is actually failed authorization.
I suppose it’s because Password Manager does not react on the unsuccessfull http codes, any of them.