Handle common error

curlWebHDFS now captures standard 400,401,403,404,500 error and print
corresponding messages