You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting InternalServerError 500 instead of Bad Input 400 when trying to set a device resource value with some wrong/invalid parameter in PUT handler of service's command request.
#495
We are facing this with our customized service when trying to update/set a device channel resource value with the wrong/invalid parameter. We want to return the 4xx code, due to an invalid data set by the client. But no provision to return the other code except 200/500 in the PUT handler of the service's device command.
Description [REQUIRED]
We are currently getting "InternalServerError, 500" when trying to set a device resource value with some wrong/invalid parameter. The expected error with the status code should be "Bad Input, 400".
We observed that there is only provision to return 200(True) or 500 (False) errors, the "edgex-sdk-c" should be improved to return a REST standard error code 4xx,
The text was updated successfully, but these errors were encountered:
Relevant Package [REQUIRED]
We are facing this with our customized service when trying to update/set a device channel resource value with the wrong/invalid parameter. We want to return the 4xx code, due to an invalid data set by the client. But no provision to return the other code except 200/500 in the PUT handler of the service's device command.
Description [REQUIRED]
We are currently getting "InternalServerError, 500" when trying to set a device resource value with some wrong/invalid parameter. The expected error with the status code should be "Bad Input, 400".
We observed that there is only provision to return 200(True) or 500 (False) errors, the "edgex-sdk-c" should be improved to return a REST standard error code 4xx,
The text was updated successfully, but these errors were encountered: