Propagate error status codes correctly 67/79567/1
authorTomas Cere <tomas.cere@pantheon.tech>
Wed, 16 Jan 2019 10:47:14 +0000 (11:47 +0100)
committerTomas Cere <tomas.cere@pantheon.tech>
Wed, 16 Jan 2019 10:47:14 +0000 (11:47 +0100)
commit335317598d3bf1748fb7ff818ef2728601a79f0b
tree18784d873ea65c8ad6f3fe5724e97ea38ff9e1ac
parentead00abf659049b4eeff139f180f0326437f42bf
Propagate error status codes correctly

All RestconfDocumentedExceptions were being incorrectly
reported with status code 50x since the status code was not
correctly forwared to the underlying WebApplicationException.

Change-Id: Ibe53c560053607abff665a2f36a524dece51a2fc
JIRA: NETCONF-511
Signed-off-by: Tomas Cere <tomas.cere@pantheon.tech>
restconf/restconf-common/src/main/java/org/opendaylight/restconf/common/errors/RestconfDocumentedException.java