Fixed implementatation problems

Had the status code send as string instead of number.