Created
February 27, 2018 22:35
-
-
Save mattkelley/4639ecdc471d168bdfa59645aa81269a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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