cover custom errors and post handler