display custom error messages when raising ActiveResource errors

Custom error messages sent by the server are currently lost by the time the user sees the raised error. This pull request fixes that.