Test APIError.Error() formatting, status code to sentinel error mapping via Is(), and error matching through fmt.Errorf wrapping.