for _, errorCode := range errorCodes {
					fakeClient.FakeHttpClient.DoRawHttpRequestInt = errorCode
					fakeClient.FakeHttpClient.DoRawHttpRequestResponse = []byte("false")

					_, err := hardwareService.PowerOn(1234567)
					Expect(err).To(HaveOccurred())
				}
			})
		})
	})

	Context("#RebootDefault", func() {
		It("sucessfully default reboots hardware instance", func() {
			fakeClient.FakeHttpClient.DoRawHttpRequestResponse = []byte("true")

			rebooted, err := hardwareService.RebootDefault(1234567)
			Expect(err).ToNot(HaveOccurred())
			Expect(rebooted).To(BeTrue())
		})

		It("fails to default reboot hardware instance", func() {
			fakeClient.FakeHttpClient.DoRawHttpRequestResponse = []byte("false")

			rebooted, err := hardwareService.RebootDefault(1234567)
			Expect(err).To(HaveOccurred())
			Expect(rebooted).To(BeFalse())
		})

		Context("when HTTP client returns error codes 40x or 50x", func() {
			It("fails for error code 40x", func() {
				errorCodes := []int{400, 401, 499}