Add default PollTime value and use HTTP response codes for error handling