default error status on err to 500