mirror of
https://github.com/outbackdingo/sysadm.git
synced 2026-01-27 10:20:26 +00:00
Change the default reply code for an invalid subsystem to 400 BadRequest instead of 404 NoContent.
This commit is contained in:
@@ -91,7 +91,7 @@ RestOutputStruct::ExitCode WebSocket::EvaluateBackendRequest(const RestInputStru
|
||||
}else{
|
||||
QJsonObject avail;
|
||||
AvailableSubsystems(IN.fullaccess, &avail);
|
||||
if(!avail.contains(namesp+"/"+name)){ return RestOutputStruct::NOTFOUND; }
|
||||
if(!avail.contains(namesp+"/"+name)){ return RestOutputStruct::BADREQUEST; }
|
||||
}
|
||||
|
||||
//Go through and forward this request to the appropriate sub-system
|
||||
|
||||
Reference in New Issue
Block a user