add log.Error() call for 5xx
docs