Create error message when StatusCode is not OK for JSON POST.

Added examples of OK and faulty response object for testing