I am trying to create api to show my servers status
recently I created a api which was very rough you may laugh too much here is a code what I did