using System;

namespace GZTW.Pecklist.Models
{
    public class ApiError
    {
        public int code { get; set; }
        public string message { get; set; }
        //public string type { get; set; }
        public string source { get; set; }
        public string helpurl { get; set; }


        public static ApiError generalError(string msg, string src)
        {
            return new ApiError { code = 100, helpurl = "peck.ayanova.com", message = msg, source = src };
        }
    }
}
/*

codes
100 = general error until we have more specific ones


 */
