[front] [api] [minor] Added some error handlers