// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.restapi;

import com.yahoo.slime.Slime;

/**
 * A 200 ok response with a message in JSON.
 *
 * @author bratseth
 */
public class MessageResponse extends SlimeJsonResponse {

    public MessageResponse(String message) {
        super(slime(message));
    }

    private static Slime slime(String message) {
        var slime = new Slime();
        slime.setObject().setString("message", message);
        return slime;
    }

}

@@ -388,16 +388,127 @@
 %0A    %7D%0A%0A
+    public MessageResponse(int statusCode, String message) %7B%0A        super(statusCode, slime(message));%0A    %7D%0A%0A
     priv

Add constructor also taking status code