API auth response fix.

Documentation wrong, on error returns 401 as it should instead of 204 as
stated.