Resolve "Resource-config POST api returns 500 internal server error when the device is not onboarded."
requested to merge 425-resource-config-post-api-returns-500-internal-server-error-when-the-device-is-not-onboarded into develop
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