Added support for api errors with Grape