DTO:
public class User { @NotNull private String name; @NotNull private String password; //.. }
Controller:
{ "message": "string", "errors": [ { "field": "string", "message": "string", "error_code": "string" } ], "resource": "string", "description": "string" }