using System;

namespace FastArena.Network
{
    public enum StatusCode
    {
        OK, 
        ServerError,
        AccessNotAllowed
    }

    public class StatusCodeException : Exception
    {
        public StatusCode Code;
        
        public StatusCodeException(StatusCode code) : 
            base($"Status code {(int)code} ({code})")
        {
            Code = code;
        }
    }
}