Improved error handling

This branch improves error handling for Her by including the status code of the response as well as guarding if the error is not an array.