Fixed settings post path
Added HTTP result code check