func HttpError(err error) (code int, action int, message string) {
	code = http.StatusInternalServerError
	action = Report
	message = err.Error()

	if er, ok := err.(serverError); ok {
		code = httpErrors[er.code]
		action = er.action
		message = er.message
	}

	return
}
// Returns httpErrorCode, message and action of it
Returns httpErrorCode, message and action of it
// Returns httpErrorCode message and action of it
func HttpError(err error) (code int, action int, message string) {
	code = http.StatusInternalServerError
	action = Report
	message = err.Error()
	if er, ok := err.(serverError); ok {
		code = httpErrors[er.code]
		action = er.action
		message = er.message
	}
	return
}
func HttpError ( err error ) ( code int , action int , message string ) { code = http . StatusInternalServerError action = Report message = err . Error ( ) if er , ok := err . ( serverError ) ; ok { code = httpErrors [ er . code ] action = er . action message = er . message } return }
Returns httpErrorCode, message and action of it
Returns httpErrorCode message and action of it