Stray space.
Simplified the conversion of booleans to string representations.
Correctly compare error code status levels as booleans.
Explicitly specify the URL query string separator as a bare ampersand.