added simple frontend, added error payload class