Test

<back to all web services

ReturnCustom400

The following routes are available for this service:
All Verbs/returncustom400
All Verbs/returncustom400/{Message}
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
import com.google.gson.annotations.*;
import com.google.gson.reflect.*;

public class dtos
{

    public static class ReturnCustom400
    {
        public String message = null;
        
        public String getMessage() { return message; }
        public ReturnCustom400 setMessage(String value) { this.message = value; return this; }
    }

    public static class ReturnCustom400Response
    {
        public ResponseStatus responseStatus = null;
        
        public ResponseStatus getResponseStatus() { return responseStatus; }
        public ReturnCustom400Response setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
    }

}

Java ReturnCustom400 DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /returncustom400 HTTP/1.1 
Host: test.servicestack.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	message: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	responseStatus: 
	{
		errorCode: String,
		message: String,
		stackTrace: String,
		errors: 
		[
			{
				errorCode: String,
				fieldName: String,
				message: String,
				meta: 
				{
					String: String
				}
			}
		],
		meta: 
		{
			String: String
		}
	}
}