libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit a2f80383b1d6a48eeea05caf259a6016d0caeb8c
parent 94bb65e965a78cf9c05e1b596bb3e7b6dc2e2ebc
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date:   Mon,  9 Mar 2020 14:45:30 +0100

avoid using "error type" in a 200 OK response

Diffstat:
Mnexus/src/main/kotlin/tech/libeufin/nexus/Main.kt | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt @@ -497,7 +497,7 @@ fun main() { val pain001data = call.receive<Pain001Data>() createPain001entry(pain001data, acctid) - call.respond(NexusErrorJson("Payment instructions persisted in DB")) + call.respondText("Payment instructions persisted in DB", ContentType.Text.Plain, HttpStatusCode.OK) return@post }