Fix assigning status
Error pages