| All Verbs | /returncustom400 | ||
|---|---|---|---|
| All Verbs | /returncustom400/{Message} | 
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
import 'dart:collection';
class ReturnCustom400Response implements IConvertible
{
    ResponseStatus? responseStatus;
    ReturnCustom400Response({this.responseStatus});
    ReturnCustom400Response.fromJson(Map<String, dynamic> json) { fromMap(json); }
    fromMap(Map<String, dynamic> json) {
        responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!);
        return this;
    }
    Map<String, dynamic> toJson() => {
        'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!)
    };
    getTypeName() => "ReturnCustom400Response";
    TypeContext? context = _ctx;
}
class ReturnCustom400 implements IConvertible
{
    String? message;
    ReturnCustom400({this.message});
    ReturnCustom400.fromJson(Map<String, dynamic> json) { fromMap(json); }
    fromMap(Map<String, dynamic> json) {
        message = json['message'];
        return this;
    }
    Map<String, dynamic> toJson() => {
        'message': message
    };
    getTypeName() => "ReturnCustom400";
    TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'test.servicestack.net', types: <String, TypeInfo> {
    'ReturnCustom400Response': TypeInfo(TypeOf.Class, create:() => ReturnCustom400Response()),
    'ReturnCustom400': TypeInfo(TypeOf.Class, create:() => ReturnCustom400()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=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
		}
	}
}