Fixing issues in error response format(#215)