Send api error
Fixed loader on api error