* RESTCONF failed authentication changed error return code from 403 Forbiden to 401 Unauthorized following RFC 8040
This commit is contained in:
parent
92a3898c46
commit
6b08a22f04
5 changed files with 22 additions and 6 deletions
|
|
@ -81,8 +81,8 @@ static const map_str2int netconf_restconf_map[] = {
|
|||
{"bad-element", 400},
|
||||
{"unknown-element", 400},
|
||||
{"unknown-namespace", 400},
|
||||
{"access-denied", 403},
|
||||
{"access-denied", 401}, /* or 403 */
|
||||
{"access-denied", 403}, /* or 401 special case if tagstr is: "The requested URL was unauthorized" handled in api_return_err */
|
||||
{"access-denied", 401},
|
||||
{"lock-denied", 409},
|
||||
{"resource-denied", 409},
|
||||
{"rollback-failed", 500},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue