修改rest error方法
Merge pull request #1 from Neeke/master

Get new code