Skip to content

Commit

Permalink
[#53410] server: Correct accept registration endpoint status code
Browse files Browse the repository at this point in the history
  • Loading branch information
lkedziora committed Jan 5, 2024
1 parent 1748b7d commit 1961b8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/api/v1/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def set_registration():

registration = server.instance._registrations_db.fetch_one(mac, public_key)
if registration is None:
return api_error("specified registration does not exist", 400)
return api_error("specified registration does not exist", 404)

# There is a registration for the specified device.
# We have to handle two cases:
Expand Down

0 comments on commit 1961b8a

Please sign in to comment.