Skip to content

Instantly share code, notes, and snippets.

@mattkelley
Created February 27, 2018 22:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattkelley/4639ecdc471d168bdfa59645aa81269a to your computer and use it in GitHub Desktop.
Save mattkelley/4639ecdc471d168bdfa59645aa81269a to your computer and use it in GitHub Desktop.
// report files failure action
{
payload: {
name: 'ApiError',
status: 404,
statusText: 'Not Found',
response: {},
message: '404 - Not Found'
},
type: 'REPORT_FILES_FAILURE',
error: true
}
// report file success action
payload: { api response },
type: 'REPORT_FILES_SUCCESS'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment