mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov.git
synced 2025-11-21 12:25:16 +00:00
Error Framework update
This commit is contained in:
@@ -53,7 +53,7 @@ namespace OpenWifi {
|
||||
for(const auto &i:SEs) {
|
||||
|
||||
if(!i.deviceID.empty() && i.deviceID!=deviceID) {
|
||||
return BadRequest("Invalid deviceID");
|
||||
return BadRequest(RESTAPI::Errors::InvalidDeviceID);
|
||||
}
|
||||
|
||||
if (i.statusCode == ProvObjects::SignupStatusCodes::SignupWaitingForEmail ||
|
||||
@@ -181,7 +181,7 @@ namespace OpenWifi {
|
||||
return ReturnObject(Answer);
|
||||
}
|
||||
|
||||
return BadRequest("Not implemented");
|
||||
return BadRequest(RESTAPI::Errors::NotImplemented);
|
||||
}
|
||||
|
||||
void RESTAPI_signup_handler::DoGet() {
|
||||
|
||||
Reference in New Issue
Block a user