Skip to content

Resolve "Resource-config POST api returns 500 internal server error when the device is not onboarded."

Description

  • Changed the RESOURCE-CONFIG POST method status code from 500 to 409 when the device is not onboarded.
  • Replaced all numerical status code by http package constants.

Checklist

  • I have update updated the @version string in main.go. See https://semver.org/
  • I have update CHANGELOG.md with a short description of changes.
  • I have run swag init to update the swagger docs.

Closes #425 (closed)

Edited by Dagim Sisay

Merge request reports