Added statusCode check for lorempixel response
Added statusCode check for lorempixel response

Occasionally the service will throw a 502 error and we weren't handling it properly. 
Also, minor formatting edits.
ibmjstart/bluemix-node-multiregion,ibmjstart/bluemix-node-multiregion