diff --git a/obp-api/src/main/scala/code/api/v5_1_0/APIMethods510.scala b/obp-api/src/main/scala/code/api/v5_1_0/APIMethods510.scala index b047863421..51d093825a 100644 --- a/obp-api/src/main/scala/code/api/v5_1_0/APIMethods510.scala +++ b/obp-api/src/main/scala/code/api/v5_1_0/APIMethods510.scala @@ -1095,7 +1095,7 @@ trait APIMethods510 { (Full(user), callContext) <- authenticatedAccess(cc) consentId = getConsentIdRequestHeaderValue(cc.requestHeaders).getOrElse("") _ <- Future(Consents.consentProvider.vend.getConsentByConsentId(consentId)) map { - unboxFullOrFail(_, callContext, ConsentNotFound) + unboxFullOrFail(_, callContext, ConsentNotFound, 404) } consent <- Future(Consents.consentProvider.vend.revoke(consentId)) map { i => connectorEmptyResponse(i, callContext)